Python 2 compatibility for Eric 5

Sat, 24 Aug 2013 22:34:40 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 24 Aug 2013 22:34:40 +0200
changeset 36
d3312087bb1d
parent 34
cec89eb19c5c
child 37
0cbb04007ff1

Python 2 compatibility for Eric 5

ChangeLog file | annotate | diff | comparison | revisions
PluginTimeTracker.py file | annotate | diff | comparison | revisions
PluginTimeTracker.zip file | annotate | diff | comparison | revisions
TimeTracker/ConfigurationPage/TimeTrackerPage.py file | annotate | diff | comparison | revisions
TimeTracker/TimeTrackEntry.py file | annotate | diff | comparison | revisions
TimeTracker/TimeTracker.py file | annotate | diff | comparison | revisions
TimeTracker/TimeTrackerEntryDialog.py file | annotate | diff | comparison | revisions
TimeTracker/TimeTrackerWidget.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sat Feb 23 15:33:17 2013 +0100
+++ b/ChangeLog	Sat Aug 24 22:34:40 2013 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 1.2.0:
+- Python 2 compatibility for Eric 5
+
 Version 1.1.0:
 - bug fixes
 - modified code to do lazy import
--- a/PluginTimeTracker.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/PluginTimeTracker.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the Time Tracker plugin.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 
 from PyQt4.QtCore import QObject, QTranslator, QCoreApplication
@@ -22,7 +24,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "1.1.0"
+version = "1.2.0"
 className = "TimeTrackerPlugin"
 packageName = "TimeTracker"
 shortDescription = "Time Tracker to keep track of the project time."
Binary file PluginTimeTracker.zip has changed
--- a/TimeTracker/ConfigurationPage/TimeTrackerPage.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/TimeTracker/ConfigurationPage/TimeTrackerPage.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the Time Tracker configuration page.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase
 from .Ui_TimeTrackerPage import Ui_TimeTrackerPage
 
@@ -21,7 +23,7 @@
         
         @param plugin reference to the plugin object
         """
-        super().__init__()
+        super(TimeTrackerPage, self).__init__()
         self.setupUi(self)
         self.setObjectName("TimeTrackerPage")
         
--- a/TimeTracker/TimeTrackEntry.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/TimeTracker/TimeTrackEntry.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the time track entry class.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import Qt, QDateTime, QTime
 
 
--- a/TimeTracker/TimeTracker.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/TimeTracker/TimeTracker.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the time tracker object.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 
 from PyQt4.QtCore import Qt, QObject
--- a/TimeTracker/TimeTrackerEntryDialog.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/TimeTracker/TimeTrackerEntryDialog.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the time tracker edit dialog.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import pyqtSlot, QDateTime, QDate
 from PyQt4.QtGui import QDialog, QDialogButtonBox
 
@@ -29,7 +31,7 @@
             comment combo box (list of strings)
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(TimeTrackerEntryDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
--- a/TimeTracker/TimeTrackerWidget.py	Sat Feb 23 15:33:17 2013 +0100
+++ b/TimeTracker/TimeTrackerWidget.py	Sat Aug 24 22:34:40 2013 +0200
@@ -7,6 +7,8 @@
 Module implementing the time tracker widget.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 
 from PyQt4.QtCore import pyqtSlot, QPoint, Qt, QDate, QTime, QFileInfo
@@ -35,7 +37,7 @@
         @param tracker reference to the time tracker (TimeTracker)
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(TimeTrackerWidget, self).__init__(parent)
         self.setupUi(self)
         
         self.__tracker = tracker

eric ide

mercurial