[issue28255] TextCalendar.prweek/month/year outputs an extra whitespace character
Serhiy Storchaka
report at bugs.python.org
Fri Sep 23 05:02:27 EDT 2016
Serhiy Storchaka added the comment:
The patch LGTM. Could you please add tests?
I suppose this is a consequence of porting from Python 2 to Python 3 (maybe with 2to3). Usually "print x," in Python 2 corresponds to "print(x, end=' ')" in Python 3. But if x ends with \n, print with a comma in Python 2 don't add a space, this corresponds to "print(x, end='')". Similar issue was fixed not long ago. Maybe there are other similar issues in the stdlib or scripts.
----------
type: enhancement -> behavior
versions: +Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28255>
_______________________________________
More information about the Python-bugs-list
mailing list