aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/utils.py')
-rw-r--r--netlib/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/netlib/utils.py b/netlib/utils.py
index 57532453..66bbdb5e 100644
--- a/netlib/utils.py
+++ b/netlib/utils.py
@@ -8,9 +8,11 @@ def isascii(s):
return False
return True
+
# best way to do it in python 2.x
def bytes_to_int(i):
- return int(i.encode('hex'), 16)
+ return int(i.encode('hex'), 16)
+
def cleanBin(s, fixspacing=False):
"""