Steven Myint

Results 96 comments of Steven Myint

@humitos, I think the problem mentioned in https://github.com/myint/autoflake/pull/9#issuecomment-146725843 would need to be resolved first.

@humitos, I still get the original error. I've put my `codecs.py` [here](https://gist.github.com/myint/2e749532166ff3e85badde7b3776a9fb). ``` $ git clone https://github.com/jobevers/autoflake $ cd autoflake $ shasum /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/codecs.py 7f121cb19f206da053d41d3850ebb2a884fd60ff /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/codecs.py $ ./autoflake.py /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/codecs.py ``` ```...

And I can find many more similar errors by running the acid test for about a minute. ``` $ ./test_acid.py ```

Any thoughts on the below case? I haven't seen/written code like this before, but it seems like valid code that would result in a false positive from pyflakes with this...

I agree that it doesn't belong in `pyflakes`. Though, in case anyone does want to use this feature, note that it exists in `pylint`. `foo.py`: ``` python try: raise except:...

I didn't even realize that `pyflakes` was outputting warnings to standard out and errors to standard error. Weird.

I think currently [`Reporter.flake()`](https://github.com/PyCQA/pyflakes/blob/434bbb06d4dc38ab09eb9405be6fc1279286f69d/pyflakes/reporter.py#L67) goes to standard out and [`Reporter.syntaxError()`](https://github.com/PyCQA/pyflakes/blob/434bbb06d4dc38ab09eb9405be6fc1279286f69d/pyflakes/reporter.py#L39) goes to standard error. Though, I guess I'm not sure how to trigger both. So a code example from @timabbott...

Oh, I see. You are dealing with multiple files. - File A -> Syntax error to `stderr`. - File B -> Flake warnings to `stdout`.

`foo.py`: ```python #!/usr/bin/env python3 import subprocess process = subprocess.Popen(['pyflakes', '.'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = process.communicate() print(stdout.decode()) ``` ``` $ git clone https://github.com/zulip/zulip $ cd zulip $ echo / >>...