summaryrefslogtreecommitdiffstats
path: root/Lib/pyclbr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-07 15:12:32 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-07 15:12:32 (GMT)
commit98c9eba945dd75d63e97dc66fb70b8dc53b8d9a7 (patch)
tree494cfbb6af6582a643eebf650b7d6d8d1899553a /Lib/pyclbr.py
parent729afc1dff00440e5889c6e884d3908343a5c0cf (diff)
downloadcpython-98c9eba945dd75d63e97dc66fb70b8dc53b8d9a7.zip
cpython-98c9eba945dd75d63e97dc66fb70b8dc53b8d9a7.tar.gz
cpython-98c9eba945dd75d63e97dc66fb70b8dc53b8d9a7.tar.bz2
Fix bug discovered by John W. Shipman -- when the width of a format
specifier came from an int expression instead of a constant in the format, a negative width was truncated to zero instead of taken to mean the same as that negative constant plugged into the format. E.g. "(%*s)" % (-5, "foo") yielded "(foo)" while "(%-5s)" yields "(foo )". Now both yield the latter -- like sprintf() in C.
Diffstat (limited to 'Lib/pyclbr.py')
0 files changed, 0 insertions, 0 deletions