summaryrefslogtreecommitdiff
path: root/netaddr/strategy/eui48.py
diff options
context:
space:
mode:
Diffstat (limited to 'netaddr/strategy/eui48.py')
-rw-r--r--netaddr/strategy/eui48.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/netaddr/strategy/eui48.py b/netaddr/strategy/eui48.py
index 209c950..5685e34 100644
--- a/netaddr/strategy/eui48.py
+++ b/netaddr/strategy/eui48.py
@@ -173,9 +173,9 @@ def str_to_int(addr):
words = (match_result[0],)
break
if not found_match:
- raise AddrFormatError('%r is not a supported MAC format!' % addr)
+ raise AddrFormatError('%r is not a supported MAC format!' % (addr,))
else:
- raise TypeError('%r is not str() or unicode()!' % addr)
+ raise TypeError('%r is not str() or unicode()!' % (addr,))
int_val = None
@@ -192,7 +192,7 @@ def str_to_int(addr):
# 12 bytes (bare, no delimiters)
int_val = int('%012x' % int(words[0], 16), 16)
else:
- raise AddrFormatError('unexpected word count in MAC address %r!' % addr)
+ raise AddrFormatError('unexpected word count in MAC address %r!' % (addr,))
return int_val