--- a/hgext/phabricator.py Sun Feb 20 14:52:40 2022 -0700
+++ b/hgext/phabricator.py Sun Feb 20 15:03:26 2022 -0700
@@ -62,6 +62,7 @@
import base64
import contextlib
import hashlib
+import io
import itertools
import json
import mimetypes
@@ -2200,7 +2201,7 @@
for drev, contents in patches:
ui.status(_(b'applying patch from D%s\n') % drev)
- with patch.extract(ui, pycompat.bytesio(contents)) as patchdata:
+ with patch.extract(ui, io.BytesIO(contents)) as patchdata:
msg, node, rej = cmdutil.tryimportone(
ui,
repo,