RefactoringRope/HelpDialog.py

changeset 20
83b71483e198
parent 1
9f687137a929
child 35
79e19b499675
diff -r 32dd7dbf3e8e -r 83b71483e198 RefactoringRope/HelpDialog.py
--- a/RefactoringRope/HelpDialog.py	Sun Jan 30 19:00:34 2011 +0100
+++ b/RefactoringRope/HelpDialog.py	Sun Jan 30 19:19:40 2011 +0100
@@ -14,11 +14,12 @@
 
 import Globals
 
+
 class HelpDialog(QDialog, Ui_HelpDialog):
     """
     Class implementing a dialog to show help about rope.
     """
-    def __init__(self, title, helpfile, parent = None):
+    def __init__(self, title, helpfile, parent=None):
         """
         Constructor
         
@@ -39,7 +40,7 @@
             self.helpEdit.setFontFamily("Monospace")
         
         try:
-            f = open(helpfile, "r", encoding = "utf-8")
+            f = open(helpfile, "r", encoding="utf-8")
             txt = f.read()
             f.close()
             self.helpEdit.setPlainText(txt)
@@ -80,7 +81,7 @@
             findFlags |= QTextDocument.FindBackward
         
         if cur.hasSelection():
-            cur.setPosition(backwards and cur.anchor() or cur.position(), 
+            cur.setPosition(backwards and cur.anchor() or cur.position(),
                             QTextCursor.MoveAnchor)
         newCur = doc.find(txt, cur, findFlags)
         if newCur.isNull():

eric ide

mercurial