Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 5683
66b11f5171e8
parent 5672
495b53f37f6c
child 5725
671561c52802
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Fri Apr 07 18:42:03 2017 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sat Apr 08 19:23:04 2017 +0200
@@ -7,9 +7,13 @@
 Module implementing the code style checker.
 """
 
+try:  # Only for Py2
+    import Queue as queue
+except ImportError:
+    import queue
+
 import sys
 import multiprocessing
-import queue
 
 import pycodestyle
 from NamingStyleChecker import NamingStyleChecker

eric ide

mercurial