Skip to content

Commit 398a1f3

Browse files
committed
Use %r in __repr__.
Suggested by @exhuma in [code review][]. --- [code review]: 9c48287#commitcomment-2904330
1 parent 0b3fcbc commit 398a1f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/iptools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def __repr__ (self):
640640
>>> repr(IpRange('127.0.0.255', '127.0.0.0'))
641641
"IpRange('127.0.0.0', '127.0.0.255')"
642642
"""
643-
return "IpRange('%s', '%s')" % (
643+
return "IpRange(%r, %r)" % (
644644
long2ip(self.startIp), long2ip(self.endIp))
645645
#end __repr__
646646

0 commit comments

Comments
 (0)