Message330220
To include trailing whitespace on a line in a doctest, _don't_ use raw strings. Use a regular string, and include add a (one or more) trailing \x20 instead of a space (for example). For example:
r"""
>>> print("a ")
a
"""
where there's a space at the end of the output line is no good. It's visually impossible to tell what's intended, and the commit hook should reject it. But this works fine (a regular string and an escape code):
"""
>>> print("a ")
a\x20
""" |
|
Date |
User |
Action |
Args |
2018-11-21 22:16:39 | tim.peters | set | recipients:
+ tim.peters, r.david.murray, jairotrad, CuriousLearner |
2018-11-21 22:16:38 | tim.peters | set | messageid: <1542838598.48.0.788709270274.issue24746@psf.upfronthosting.co.za> |
2018-11-21 22:16:38 | tim.peters | link | issue24746 messages |
2018-11-21 22:16:38 | tim.peters | create | |
|