git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6b086
)
fix syntax error
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 25 Mar 2012 20:03:02 +0000
(16:03 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 25 Mar 2012 20:03:02 +0000
(16:03 -0400)
PLC/Interfaces.py
patch
|
blob
|
history
diff --git
a/PLC/Interfaces.py
b/PLC/Interfaces.py
index
db8ef50
..
f4ddcc8
100644
(file)
--- a/
PLC/Interfaces.py
+++ b/
PLC/Interfaces.py
@@
-27,7
+27,7
@@
def valid_ipv4(ip):
def valid_ipv6(ip):
try:
- ip = socket.inet_ntop(socket.AF_INET6, socket.inet_pton(socket.AF_INET6, ip)
+ ip = socket.inet_ntop(socket.AF_INET6, socket.inet_pton(socket.AF_INET6, ip)
)
return True
except socket.error:
return False