Closed buchdag closed 7 years ago
I managed to get it to work on centos 6.7 (which has python 2.6.6 as the system python) by replacing the literal utf-8 with an escaped unicode literal: u'\u4f8b\u5982.\u4e2d\u56fd'
.
Thanks, that worked, I thought that python 3 would choke on u''
.
I had to disable a pylint warning for the Vhost.decode() method, and I removed the utf-8 declaration header.
Yeah, it was missing in python 3.0, adding back in 3.1 to ease compatiblility iirc.
This looks good to me; assuming travis passes I'll merge it.
Any idea why Travis appears to be stuck on GitHub while it's not ?
Restarting the build seems to have done the trick for my fork.
No idea. I decided not to worry about it; travis has transient issues like that every now and then.
This PR aims to provide basic sanitization for domain names:
The utf-8 check is currently causing an unexpected doctest error on python 2.6 but not on 2.7, I haven't found a solution yet, any help is welcome: