diff tests/test-import.py @ 147:98829bf71f10

util: define BytesIO in one place
author Matt Mackall <mpm@selenic.com>
date Fri, 13 Mar 2015 12:28:06 -0500
parents 8d7bf729a4db
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-import.py	Fri Mar 13 11:34:52 2015 -0400
+++ b/tests/test-import.py	Fri Mar 13 12:28:06 2015 -0500
@@ -1,10 +1,5 @@
 import common, os
-try:
-    from io import BytesIO
-except ImportError:
-    from cStringIO import StringIO as BytesIO
-import hglib
-from hglib.util import b
+from hglib.util import b, BytesIO
 
 patch = b("""
 # HG changeset patch