file() is not present in Python 3.
It also makes sure we write bytes on Python 3.
Details
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
tests/test-convert-git.t | ||
---|---|---|
423 | We'll need b"' and make chr() return bytes. |
tests/test-convert-git.t | ||
---|---|---|
423 | To make chr() return bytes, I did chr().encode('latin-1') but there is UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128) error while writing to file. Python 2 also don't have the encoding argument to open which Python 3 has. Looks like need to write a .py file and execute that. |
tests/test-convert-git.t | ||
---|---|---|
423 | Maybe we can steal pycompat.bytechr of py3. It should work on both Pythons. |
We'll need b"' and make chr() return bytes.