Fix lots of py3isms. Email package is borked in py3, however.

This commit is contained in:
Stuart D. Gathman
2016-09-21 17:24:37 -04:00
parent 70fa47dac6
commit bae79a4f1c
10 changed files with 62 additions and 83 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ def inet_pton(p):
::1.2.3.4.5
"""
if p == '::':
return '\0'*16
return b'\0'*16
s = p
m = RE_IP4.search(s)
try: