Fixed a few code style issues.

Sat, 11 Nov 2017 18:47:09 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Nov 2017 18:47:09 +0100
changeset 5967
da72832f7c22
parent 5966
3325ecd87c7c
child 5968
c5112b5cb7a9

Fixed a few code style issues.

E5Gui/E5TextEditSearchWidget.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5TextEditSearchWidget.py	Sat Nov 11 18:44:04 2017 +0100
+++ b/E5Gui/E5TextEditSearchWidget.py	Sat Nov 11 18:47:09 2017 +0100
@@ -11,7 +11,7 @@
 
 from PyQt5.QtCore import pyqtSlot, Qt, QMetaObject, QSize
 from PyQt5.QtGui import QPalette, QBrush, QColor, QTextDocument, QTextCursor
-from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout,  QLabel, \
+from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, \
     QComboBox, QCheckBox, QToolButton, QSizePolicy
 
 from E5Gui.E5ComboBox import E5ClearableComboBox
--- a/Preferences/ConfigurationDialog.py	Sat Nov 11 18:44:04 2017 +0100
+++ b/Preferences/ConfigurationDialog.py	Sat Nov 11 18:47:09 2017 +0100
@@ -12,7 +12,8 @@
 import os
 import types
 
-from PyQt5.QtCore import pyqtSignal, pyqtSlot, PYQT_VERSION, Qt, QMetaObject, QRect
+from PyQt5.QtCore import pyqtSignal, pyqtSlot, PYQT_VERSION, Qt, QMetaObject, \
+    QRect
 from PyQt5.QtGui import QPixmap
 from PyQt5.QtWidgets import QSizePolicy, QSpacerItem, QWidget, QTreeWidget, \
     QStackedWidget, QDialog, QSplitter, QScrollArea, QApplication, \
--- a/QScintilla/Editor.py	Sat Nov 11 18:44:04 2017 +0100
+++ b/QScintilla/Editor.py	Sat Nov 11 18:47:09 2017 +0100
@@ -4727,7 +4727,7 @@
         """
         # process the list only, if not already obsolete ...
         if acText != self.__acText:
-           return
+            return
         
         self.__acCompletions.update(set(completions))
         
@@ -4738,8 +4738,8 @@
             self.__acWatchdog.stop()
             
             # Autocomplete with QScintilla if no results present
-            if (Preferences.getEditor("AutoCompletionScintillaOnFail")
-                    and not self.__acCompletions):
+            if Preferences.getEditor("AutoCompletionScintillaOnFail") and \
+               not self.__acCompletions:
                 self.autoCompleteQScintilla()
                 return
         

eric ide

mercurial