UI/BrowserModel.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3145
a9de05d4a22f
--- a/UI/BrowserModel.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/UI/BrowserModel.py	Sun Nov 03 15:58:22 2013 +0100
@@ -87,7 +87,7 @@
             if index.column() < item.columnCount():
                 return item.data(index.column())
             elif index.column() == item.columnCount() and \
-                 index.column() < self.columnCount(self.parent(index)):
+                    index.column() < self.columnCount(self.parent(index)):
                 # This is for the case where an item under a multi-column
                 # parent doesn't have a value for all the columns
                 return ""
@@ -575,8 +575,8 @@
             if "@@Coding@@" in keys:
                 node = BrowserCodingItem(
                     parentItem,
-                    QApplication.translate("BrowserModel", "Coding: {0}")\
-                        .format(dict["@@Coding@@"].coding))
+                    QApplication.translate("BrowserModel", "Coding: {0}")
+                    .format(dict["@@Coding@@"].coding))
                 self._addItem(node, parentItem)
             if "@@Globals@@" in keys:
                 node = BrowserClassAttributesItem(
@@ -1109,8 +1109,8 @@
         @return flag indicating a Python file (boolean)
         """
         return self.fileext in Preferences.getPython("PythonExtensions") or \
-               (self.fileext == "" and self.sourceLanguage in ["Python",
-                                                               "Python2"])
+            (self.fileext == "" and
+             self.sourceLanguage in ["Python", "Python2"])
     
     def isPython3File(self):
         """
@@ -1119,7 +1119,7 @@
         @return flag indicating a Python file (boolean)
         """
         return self.fileext in Preferences.getPython("Python3Extensions") or \
-               (self.fileext == "" and self.sourceLanguage == "Python3")
+            (self.fileext == "" and self.sourceLanguage == "Python3")
     
     def isRubyFile(self):
         """
@@ -1128,7 +1128,7 @@
         @return flag indicating a Ruby file (boolean)
         """
         return self.fileext == '.rb' or \
-               (self.fileext == "" and self.sourceLanguage == "Ruby")
+            (self.fileext == "" and self.sourceLanguage == "Ruby")
     
     def isDesignerFile(self):
         """
@@ -1209,7 +1209,7 @@
         @return flag indicating a D file (boolean)
         """
         return self.fileext in ['.d', '.di'] or \
-               (self.fileext == "" and self.sourceLanguage == "D")
+            (self.fileext == "" and self.sourceLanguage == "D")
     
     def lessThan(self, other, column, order):
         """
@@ -1298,9 +1298,9 @@
             else:
                 self.icon = UI.PixmapCache.getIcon("class.png")
         if self._classObject and \
-           (self._classObject.methods or \
-            self._classObject.classes or \
-            self._classObject.attributes):
+           (self._classObject.methods or
+            self._classObject.classes or
+                self._classObject.attributes):
             self._populated = False
             self._lazyPopulation = True
     
@@ -1391,7 +1391,7 @@
            Utilities.ClassBrowsers.ClbrBaseClasses.Function.Static:
             self.icon = UI.PixmapCache.getIcon("method_static.png")
         elif self._functionObject.modifier == \
-           Utilities.ClassBrowsers.ClbrBaseClasses.Function.Class:
+                Utilities.ClassBrowsers.ClbrBaseClasses.Function.Class:
             self.icon = UI.PixmapCache.getIcon("method_class.png")
         elif self._functionObject.isPrivate():
             self.icon = UI.PixmapCache.getIcon("method_private.png")
@@ -1530,7 +1530,7 @@
         if issubclass(other.__class__, BrowserCodingItem):
             return order == Qt.DescendingOrder
         elif issubclass(other.__class__, BrowserClassItem) or \
-             issubclass(other.__class__, BrowserMethodItem):
+                issubclass(other.__class__, BrowserMethodItem):
             return order == Qt.AscendingOrder
         
         return BrowserItem.lessThan(self, other, column, order)

eric ide

mercurial