aboutsummaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorLorDClockaN <lordclockan@gmail.com>2017-09-17 21:35:51 +0200
committermosimchah <mosimchah@gmail.com>2018-11-10 17:09:02 -0500
commit6d8acb8c88970c33fab6aeae12824a839b4c146a (patch)
tree17ebffab130465e2577b4de19cba1ac501e0cd00 /tests.py
parenta8a50e922b39a2dba7e56030c660e1aabca168f3 (diff)
Fix repo upload command with python >=3.0 compatibilityHEADo8.1
Change-Id: Ifded3eae4594bc3299ce6f13f644dba6dbad2db5
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 74b325e..707111a 100755
--- a/tests.py
+++ b/tests.py
@@ -18,7 +18,10 @@
"""Tests the Checkstyle script used to run style checks on Java files."""
-from StringIO import StringIO
+try:
+ from StringIO import StringIO
+except ImportError:
+ from io import StringIO
import unittest
import checkstyle