tests: drop some obsolete py2 handling in util.py doctest
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 16 Dec 2022 14:15:09 -0500
changeset 49813 54114bba7c7e
parent 49812 58dff81ffba1
child 49814 1d1b244a91b6
tests: drop some obsolete py2 handling in util.py doctest Flagged by PyCharm while inspecting imports from the platform modules.
mercurial/util.py
--- a/mercurial/util.py	Fri Dec 16 00:54:39 2022 -0500
+++ b/mercurial/util.py	Fri Dec 16 14:15:09 2022 -0500
@@ -3213,10 +3213,7 @@
 
     The passed argument is anything that has a ``.read(N)`` method.
 
-    >>> try:
-    ...     from StringIO import StringIO as BytesIO
-    ... except ImportError:
-    ...     from io import BytesIO
+    >>> from io import BytesIO
     >>> uvarintdecodestream(BytesIO(b'\\x00'))
     0
     >>> uvarintdecodestream(BytesIO(b'\\x01'))