mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-07 01:54:08 +01:00
Fix Windows support (broken in 543e7882
).
This commit is contained in:
parent
c0beda2422
commit
08405c6ec5
@ -114,7 +114,10 @@ def isIPV4(s):
|
|||||||
0
|
0
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return bool(socket.inet_pton(socket.AF_INET, s))
|
try:
|
||||||
|
return bool(socket.inet_pton(socket.AF_INET, s))
|
||||||
|
except AttributeError: # Running Windows.
|
||||||
|
return bool(socket.inet_aton(s))
|
||||||
except socket.error:
|
except socket.error:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+limnoria (2011-10-29T13:46:10+0200)'
|
version = '0.83.4.1+limnoria (2011-10-29T14:46:35+0200)'
|
||||||
|
Loading…
Reference in New Issue
Block a user