Index: pylib/gyp/easy_xml_test.py |
diff --git a/pylib/gyp/easy_xml_test.py b/pylib/gyp/easy_xml_test.py |
index df64354982c01d9c60586778d5cc11c83f847c63..a1fdb1881d28936a6f3b05ba76a7cd839ea7f310 100755 |
--- a/pylib/gyp/easy_xml_test.py |
+++ b/pylib/gyp/easy_xml_test.py |
@@ -8,13 +8,16 @@ |
import gyp.easy_xml as easy_xml |
import unittest |
-import StringIO |
+try: |
+ from StringIO import StringIO |
+except ImportError: |
+ from io import StringIO |
class TestSequenceFunctions(unittest.TestCase): |
def setUp(self): |
- self.stderr = StringIO.StringIO() |
+ self.stderr = StringIO() |
def test_EasyXml_simple(self): |
self.assertEqual( |