py3: use io.BytesIO directly
Previously, pycompat.bytesio and pycompat.stringio referred to io.BytesIO. And util.bytesio and util.stringio aliased the pycompat symbols. This commit switches everything to use io.BytesIO directly. util.bytesio and util.stringio still exist to provide backwards compatibility, as they were the preferred symbols. Differential Revision: https://phab.mercurial-scm.org/D12252
parent
968b29a5
No related branches found
No related tags found
Showing
- hgext/phabricator.py 2 additions, 1 deletionhgext/phabricator.py
- mercurial/pure/mpatch.py 2 additions, 2 deletionsmercurial/pure/mpatch.py
- mercurial/pure/parsers.py 2 additions, 1 deletionmercurial/pure/parsers.py
- mercurial/pycompat.py 0 additions, 3 deletionsmercurial/pycompat.py
- mercurial/util.py 2 additions, 1 deletionmercurial/util.py
- tests/test-basic.t 4 additions, 3 deletionstests/test-basic.t
- tests/test-util.py 3 additions, 2 deletionstests/test-util.py
Loading
Please register or sign in to comment