[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2020-07-05 Thread Peter Wu
Peter Wu added the comment: I just ran into this issue on Linux when piping a binary file to stdin resulted in a UnicodeDecodeError while trying to read a byte from the stream. Passing /dev/stdin is a workaround that does not require modifications to an application. As for the proposed PR

[issue22322] Zip files created by `git archive` result in a SyntaxError (due to comment?)

2014-09-01 Thread Peter Wu
New submission from Peter Wu: Files created by `git archive` are not understood by the Python interpreter. This could be caused by the additional comment (for the commit hash) in the file. echo 'print(1)' __main__.py git init git add __main__.py git commit -m init git archive --format=zip

[issue22188] test_gdb fails on invalid gdbinit

2014-08-12 Thread Peter Wu
New submission from Peter Wu: I had a stale ~/.gdbinit file which tried to executed python code causing an exception. The tests should probably run with `-nx` or `-nh` to avoid reading ~/.gdbinit. -- components: Tests messages: 225245 nosy: lekensteyn priority: normal severity: normal