Added Python2 compatibility code. release-0.2.0

Sun, 16 Feb 2014 16:12:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 16 Feb 2014 16:12:58 +0100
changeset 16
f2d493540f04
parent 15
b9a131db7c74
child 17
bc3290dc9a4d

Added Python2 compatibility code.

ChangeLog file | annotate | diff | comparison | revisions
PluginProjectDjangoTagsMenu.py file | annotate | diff | comparison | revisions
PluginProjectDjangoTagsMenu.zip file | annotate | diff | comparison | revisions
ProjectDjangoTagsMenu/IeCommentDialog.py file | annotate | diff | comparison | revisions
ProjectDjangoTagsMenu/IfTagInputDialog.py file | annotate | diff | comparison | revisions
ProjectDjangoTagsMenu/TimezoneSelectionDialog.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sun Feb 16 16:02:44 2014 +0100
+++ b/ChangeLog	Sun Feb 16 16:12:58 2014 +0100
@@ -1,4 +1,7 @@
 ChangeLog
 ---------
+Version 0.2.0:
+- add Python2 compatibility code
+
 Version 0.1.0:
 - first release
--- a/PluginProjectDjangoTagsMenu.py	Sun Feb 16 16:02:44 2014 +0100
+++ b/PluginProjectDjangoTagsMenu.py	Sun Feb 16 16:12:58 2014 +0100
@@ -23,7 +23,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "0.1.0"
+version = "0.2.0"
 className = "ProjectDjangoTagsMenuPlugin"
 packageName = "ProjectDjangoTagsMenu"
 shortDescription = "Tags menu for Django projects."
Binary file PluginProjectDjangoTagsMenu.zip has changed
--- a/ProjectDjangoTagsMenu/IeCommentDialog.py	Sun Feb 16 16:02:44 2014 +0100
+++ b/ProjectDjangoTagsMenu/IeCommentDialog.py	Sun Feb 16 16:12:58 2014 +0100
@@ -1,5 +1,8 @@
 # -*- coding: utf-8 -*-
 
+# Copyright (c) 2014 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
 """
 Module implementing a dialog to enter data for an IE comment.
 """
@@ -21,7 +24,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(IeCommentDialog, self).__init__(parent)
         self.setupUi(self)
         
         for condStr, condData in [("==", ""), ("<=", " lte"), ("<", " lt"),
--- a/ProjectDjangoTagsMenu/IfTagInputDialog.py	Sun Feb 16 16:02:44 2014 +0100
+++ b/ProjectDjangoTagsMenu/IfTagInputDialog.py	Sun Feb 16 16:12:58 2014 +0100
@@ -25,7 +25,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(IfTagInputDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
--- a/ProjectDjangoTagsMenu/TimezoneSelectionDialog.py	Sun Feb 16 16:02:44 2014 +0100
+++ b/ProjectDjangoTagsMenu/TimezoneSelectionDialog.py	Sun Feb 16 16:12:58 2014 +0100
@@ -7,6 +7,8 @@
 Module implementing a dialog to select a time zone.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import pyqtSlot
 from PyQt4.QtGui import QDialog, QDialogButtonBox
 
@@ -514,7 +516,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(TimezoneSelectionDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)

eric ide

mercurial