Fixed a division bug caused by porting to Python3.

Sun, 14 Feb 2010 15:46:41 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 14 Feb 2010 15:46:41 +0000
changeset 117
d63640116aec
parent 116
2add429042ef
child 118
8be7b777742c

Fixed a division bug caused by porting to Python3.

Plugins/PluginWizardPyRegExp.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQColorDialog.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQFileDialog.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQFontDialog.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQInputDialog.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQMessageBox.py file | annotate | diff | comparison | revisions
Plugins/PluginWizardQRegExp.py file | annotate | diff | comparison | revisions
--- a/Plugins/PluginWizardPyRegExp.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardPyRegExp.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = PyRegExpWizardDialog(None, True)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQColorDialog.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQColorDialog.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = ColorDialogWizardDialog(None)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQFileDialog.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQFileDialog.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = FileDialogWizardDialog(None)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQFontDialog.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQFontDialog.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = FontDialogWizardDialog(None)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQInputDialog.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQInputDialog.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = InputDialogWizardDialog(None)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQMessageBox.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQMessageBox.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = MessageBoxWizardDialog(None)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()
--- a/Plugins/PluginWizardQRegExp.py	Sun Feb 14 14:16:29 2010 +0000
+++ b/Plugins/PluginWizardQRegExp.py	Sun Feb 14 15:46:41 2010 +0000
@@ -100,7 +100,7 @@
         dlg = QRegExpWizardDialog(None, True)
         if dlg.exec_() == QDialog.Accepted:
             line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line)/editor.indentationWidth()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
             if editor.indentationsUseTabs():
                 indString = '\t'
             else:
@@ -126,4 +126,4 @@
                 # It should be done on this way to allow undo
                 editor.beginUndoAction()
                 editor.insertAt(code, line, index)
-                editor.endUndoAction()
\ No newline at end of file
+                editor.endUndoAction()

eric ide

mercurial