diff options
author | Zaheer Chothia <zaheer.chothia@gmail.com> | 2012-10-18 13:02:48 (GMT) |
---|---|---|
committer | Zaheer Chothia <zaheer.chothia@gmail.com> | 2012-10-18 13:03:20 (GMT) |
commit | 1d5daecfaf1853f87af1d99fb84c347576648474 (patch) | |
tree | bfaaf9021a0bfd8bf26d4788812b2a02860d11fb /misc/ninja_test.py | |
parent | b022e789fd9b087e0acbeca502d586d49dd3e2f2 (diff) | |
download | Ninja-1d5daecfaf1853f87af1d99fb84c347576648474.zip Ninja-1d5daecfaf1853f87af1d99fb84c347576648474.tar.gz Ninja-1d5daecfaf1853f87af1d99fb84c347576648474.tar.bz2 |
Add support for Python 3
Diffstat (limited to 'misc/ninja_test.py')
-rwxr-xr-x | misc/ninja_test.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/ninja_test.py b/misc/ninja_test.py index b56033e..2aef7ff 100755 --- a/misc/ninja_test.py +++ b/misc/ninja_test.py @@ -15,7 +15,11 @@ # limitations under the License. import unittest -from StringIO import StringIO + +try: + from StringIO import StringIO +except ImportError: + from io import StringIO import ninja_syntax |