Trailing white spaces in multi line strings

Bug #702362 reported by Konstantin Nikitin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pep8 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: pep8

I think that it is a wrong behaviour to script to check for trailing white spaces inside multi line string.

Ex.:
$ cat test.py
my_str = """Hello
   User!
"""

I have some white spaces after "User!", because I need it for my own purposes.
I don't thing that I should get warning

$ pep8 test.py
test.py:2:15: W291 trailing whitespace

Thanks

Revision history for this message
Scott Moser (smoser) wrote :

Hi,
  Thanks for taking the time to report this bug. This does not feel like something that would Ubuntu would choose to diverge from upstream on (http://pypi.python.org/pypi/pep8). If you want to see this fixed, your best bet is to send to the upstream mailing list and pursue it there. Then, ubuntu will pick it up through upstream releases.

Changed in pep8 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Florent (florent.x) wrote :
Revision history for this message
Pander (pander) wrote :

Does this needs action of is it already fixed?

Revision history for this message
Robie Basak (racb) wrote :

Upstream says "With pep8 1.5 you achieve it adding # noqa on the last line of the docstring." and 1.5 is in Wily.

Changed in pep8 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.