Code Review
/
yardstick.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c4bba60
)
Fix ipaddress bug in main.py
64/864/2
author
Jo¶rgen Karlsson
<jorgen.w.karlsson@ericsson.com>
Thu, 18 Jun 2015 11:43:51 +0000
(13:43 +0200)
committer
Jo¶rgen Karlsson
<jorgen.w.karlsson@ericsson.com>
Thu, 18 Jun 2015 11:48:53 +0000
(13:48 +0200)
Make sure argument to ip_address() is always unicode.
Change-Id: Id319134fb412ba0ba26c57b8b7285b60e7222a79
JIRA:-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
yardstick/main.py
patch
|
blob
|
history
diff --git
a/yardstick/main.py
b/yardstick/main.py
index
8f01743
..
e8f6b54
100755
(executable)
--- a/
yardstick/main.py
+++ b/
yardstick/main.py
@@
-97,7
+97,7
@@
def atexit_handler():
def is_ip_addr(addr):
'''check if string addr is an IP address'''
try:
- ipaddress.ip_address(
addr
)
+ ipaddress.ip_address(
unicode(addr)
)
return True
except ValueError:
return False