More python3 fixes. Run pyip6 doctests in test suite.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
# This code is under the GNU General Public License. See COPYING for details.
|
||||
|
||||
from __future__ import print_function
|
||||
__version__ = '0.9.8'
|
||||
__version__ = '1.0.1'
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
+2
-2
@@ -81,7 +81,7 @@ def inet_pton(p):
|
||||
(0, 0, 0, 0, 0, 65535, 258, 772)
|
||||
|
||||
>>> try: inet_pton('::1.2.3.4.5')
|
||||
... except ValueError,x: print(x)
|
||||
... except ValueError as x: print(x)
|
||||
::1.2.3.4.5
|
||||
"""
|
||||
if p == '::':
|
||||
@@ -115,4 +115,4 @@ def inet_pton(p):
|
||||
return struct.pack('!HHHHHHHH',
|
||||
*[int(s,16) for s in a[0].split(':')])
|
||||
except ValueError: pass
|
||||
raise ValueError,p
|
||||
raise ValueError(p)
|
||||
|
||||
Reference in New Issue
Block a user