mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-18 00:19:28 +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
|
||||
"""
|
||||
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:
|
||||
return False
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
"""stick the various versioning attributes in here, so we only have to change
|
||||
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