Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pragma not recognized if tab character used #334

Closed
nedbat opened this issue Nov 6, 2014 · 2 comments
Closed

pragma not recognized if tab character used #334

nedbat opened this issue Nov 6, 2014 · 2 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Nov 6, 2014

Originally reported by Inyeol Lee (Bitbucket: inyeol_lee, GitHub: Unknown)


Pragma string with initial space gets recognized:

pragma: no cover

It doesn't get recognized if with initial tab:

#pragma: no cover

"pragma: no branch" shows the same behavior.


@nedbat
Copy link
Owner Author

nedbat commented Nov 6, 2014

Hmm, you are right! Of course, best Python practice is not to use tab characters in your source files... :)

j/k, this will be an easy fix.

In the meantime, you can change the recognized pragmas with the exclude_lines configuration setting.

@nedbat
Copy link
Owner Author

nedbat commented Nov 27, 2014

Fixed in 3eaac8c9319c (bb)

@nedbat nedbat closed this as completed Nov 27, 2014
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant