phihag / ipaddress

Python 3.3+'s ipaddress for older Python versions
Other
104 stars 53 forks source link

Fix typo in exception formatting of _is_subnet_of #51

Closed xavfernandez closed 5 years ago

xavfernandez commented 5 years ago

It produces SyntaxWarning:

SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise TypeError("%s and %s are not of the same version" (a, b))

and upstream uses f-string: https://github.com/python/cpython/blob/e042a4553efd0ceca2234f68a4f1878f2ca04973/Lib/ipaddress.py#L991

xavfernandez commented 5 years ago

And of course someone reported it already in #48 ^^ Sorry for the noise but it would be nice to fix it :)