Index: pylib/gyp/generator/msvs_test.py |
diff --git a/pylib/gyp/generator/msvs_test.py b/pylib/gyp/generator/msvs_test.py |
index c0b021df502bfa1dbdbaab3c74f1d514ef9b909f..838d236a2d8eced813d2f2c381fcda1cb328a30c 100755 |
--- a/pylib/gyp/generator/msvs_test.py |
+++ b/pylib/gyp/generator/msvs_test.py |
@@ -7,13 +7,16 @@ |
import gyp.generator.msvs as msvs |
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_GetLibraries(self): |
self.assertEqual( |