]> granicus.if.org Git - python/commit
#10695: use %s not %d so that a string 'port' does not cause a debug traceback
authorR. David Murray <rdmurray@bitdance.com>
Tue, 14 Dec 2010 14:16:20 +0000 (14:16 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 14 Dec 2010 14:16:20 +0000 (14:16 +0000)
commit32ef70c827997f869a8d8393e8bde74016b6c8a9
tree2fb7aafb76221a226502a6fb5d52fcd536ade964
parent8edd99d0852c45f70b6abc851e6b326d4250cd33
#10695: use %s not %d so that a string 'port' does not cause a debug traceback

Passing the port as a string value works fine in regular mode, but
if you turned debug on it would throw an error trying to print the
port number, which is surprising and confusing.
Lib/telnetlib.py
Lib/test/test_telnetlib.py
Misc/NEWS