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

Pollution from encoding.read_py_file() #210

Closed
souliane opened this issue May 4, 2017 · 3 comments
Closed

Pollution from encoding.read_py_file() #210

souliane opened this issue May 4, 2017 · 3 comments

Comments

@souliane
Copy link

souliane commented May 4, 2017

This method prints a line per opened data in order to detect SyntaxError:
print(tokenize.detect_encoding(f.readline))

Is there a way to detect a bad encoding without leaving the printed lines on stdout? It is really annoying, especially when changing the output format:
prospector --output-format xunit > xunit.xml

Then I get all the ('utf-8', [...]) output in my XML file.

@carlio
Copy link
Member

carlio commented May 4, 2017 via email

@souliane
Copy link
Author

souliane commented May 4, 2017

Thanks! :)

souliane pushed a commit to souliane/prospector that referenced this issue May 4, 2017
carlio added a commit that referenced this issue May 9, 2017
@carlio carlio closed this as completed in 6c9ac37 May 9, 2017
@carlio
Copy link
Member

carlio commented May 30, 2017

0.12.6 now on PyPI with this fix. Sorry for the stupid issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants