]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix other isdigit() instances that are better as isdecimal().
authorBob Halley <halley@dnspython.org>
Fri, 3 Jul 2026 15:18:39 +0000 (08:18 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 3 Jul 2026 15:18:39 +0000 (08:18 -0700)
commit40ff526586aa52b52721df8977f0e73c69dfe4c2
tree5e2bc06cfc1772256ccf058185287a5e1aeca2ee
parent7cc53f6b1043b671ee4873e65f17244f9df403c9
Fix other isdigit() instances that are better as isdecimal().

Both raised exceptions, but the latter raises a
dns.exception.SyntaxError in cases where the old code raised
ValueError.

This change also fixes the tokenizer's get_int() method, which
did not work for bases bigger than 10.
13 files changed:
dns/e164.py
dns/enum.py
dns/flags.py
dns/grange.py
dns/inet.py
dns/name.py
dns/rdtypes/ANY/GPOS.py
dns/rdtypes/ANY/LOC.py
dns/rdtypes/IN/WKS.py
dns/rdtypes/rrsigbase.py
dns/rdtypes/svcbbase.py
dns/tokenizer.py
tests/test_tokenizer.py