Fixed a serious bug related to the queue module being called Queue in Python 2. release-1.0.5

Sun, 09 Apr 2017 17:14:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Apr 2017 17:14:50 +0200
changeset 47
fa1024e1dfc9
parent 46
df1b6370965a
child 48
a56e9483659a

Fixed a serious bug related to the queue module being called Queue in Python 2.

ChangeLog file | annotate | diff | comparison | revisions
PluginMetricsRadon.py file | annotate | diff | comparison | revisions
PluginMetricsRadon.zip file | annotate | diff | comparison | revisions
RadonMetrics/CodeMetricsCalculator.py file | annotate | diff | comparison | revisions
RadonMetrics/CyclomaticComplexityCalculator.py file | annotate | diff | comparison | revisions
RadonMetrics/MaintainabilityIndexCalculator.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Fri Mar 31 17:56:53 2017 +0200
+++ b/ChangeLog	Sun Apr 09 17:14:50 2017 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 1.0.5:
+- bug fixes
+
 Version 1.0.4:
 - bug fixes
 
--- a/PluginMetricsRadon.py	Fri Mar 31 17:56:53 2017 +0200
+++ b/PluginMetricsRadon.py	Sun Apr 09 17:14:50 2017 +0200
@@ -28,7 +28,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "1.0.4"
+version = "1.0.5"
 className = "RadonMetricsPlugin"
 packageName = "RadonMetrics"
 shortDescription = "Code metrics plugin using radon package"
Binary file PluginMetricsRadon.zip has changed
--- a/RadonMetrics/CodeMetricsCalculator.py	Fri Mar 31 17:56:53 2017 +0200
+++ b/RadonMetrics/CodeMetricsCalculator.py	Sun Apr 09 17:14:50 2017 +0200
@@ -14,8 +14,12 @@
 except NameError:
     pass
 
+try:
+    import Queue as queue   # Py2
+except ImportError:
+    import queue
+
 import multiprocessing
-import queue
 
 
 def initService():
--- a/RadonMetrics/CyclomaticComplexityCalculator.py	Fri Mar 31 17:56:53 2017 +0200
+++ b/RadonMetrics/CyclomaticComplexityCalculator.py	Sun Apr 09 17:14:50 2017 +0200
@@ -14,9 +14,13 @@
 except NameError:
     pass
 
+try:
+    import Queue as queue   # Py2
+except ImportError:
+    import queue
+
 import sys
 import multiprocessing
-import queue
 
 
 def initService():
--- a/RadonMetrics/MaintainabilityIndexCalculator.py	Fri Mar 31 17:56:53 2017 +0200
+++ b/RadonMetrics/MaintainabilityIndexCalculator.py	Sun Apr 09 17:14:50 2017 +0200
@@ -14,9 +14,13 @@
 except NameError:
     pass
 
+try:
+    import Queue as queue   # Py2
+except ImportError:
+    import queue
+
 import sys
 import multiprocessing
-import queue
 
 
 def initService():

eric ide

mercurial