changeset 49813:54114bba7c7e

tests: drop some obsolete py2 handling in util.py doctest Flagged by PyCharm while inspecting imports from the platform modules.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 16 Dec 2022 14:15:09 -0500
parents 58dff81ffba1
children 1d1b244a91b6
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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'))