Fixed a few PEP-8 related issues.

Thu, 30 Aug 2012 17:11:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 30 Aug 2012 17:11:21 +0200
changeset 2016
2bbc81fcce4a
parent 2015
abb2fea2450a
child 2017
b073b149ff4a

Fixed a few PEP-8 related issues.

E5Gui/E5TreeWidget.py file | annotate | diff | comparison | revisions
Helpviewer/AdBlock/AdBlockManager.py file | annotate | diff | comparison | revisions
Helpviewer/AdBlock/AdBlockSubscription.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5TreeWidget.py	Sat Aug 25 11:54:35 2012 +0200
+++ b/E5Gui/E5TreeWidget.py	Thu Aug 30 17:11:21 2012 +0200
@@ -69,7 +69,7 @@
         """
         Public method to append an item to a parent item.
         
-        @param parent text of the parent item (string) or 
+        @param parent text of the parent item (string) or
             the parent item (QTreeWidgetItem)
         @param item item to be appended (QTreeWidgetItem)
         @return flag indicating success (boolean)
@@ -96,7 +96,7 @@
         """
         Public method to prepend an item to a parent item.
         
-        @param parent text of the parent item (string) or 
+        @param parent text of the parent item (string) or
             the parent item (QTreeWidgetItem)
         @param item item to be prepended (QTreeWidgetItem)
         @return flag indicating success (boolean)
--- a/Helpviewer/AdBlock/AdBlockManager.py	Sat Aug 25 11:54:35 2012 +0200
+++ b/Helpviewer/AdBlock/AdBlockManager.py	Thu Aug 30 17:11:21 2012 +0200
@@ -241,7 +241,7 @@
         Preferences.setHelp("AdBlockEnabled", self.__enabled)
         if self.__subscriptionsLoaded:
             subscriptions = []
-            requiresSubscriptions = [] # intermediate store for
+            requiresSubscriptions = []  # intermediate store for
                                        # subscription requiring others
             for subscription in self.__subscriptions:
                 if subscription is None:
@@ -253,7 +253,7 @@
                     subscriptions.append(urlString)
                 subscription.saveRules()
             for subscription in requiresSubscriptions:
-                subscriptions.insert(-1, subscription) # custom should be last
+                subscriptions.insert(-1, subscription)  # custom should be last
             Preferences.setHelp("AdBlockSubscriptions", subscriptions)
     
     def load(self):
--- a/Helpviewer/AdBlock/AdBlockSubscription.py	Sat Aug 25 11:54:35 2012 +0200
+++ b/Helpviewer/AdBlock/AdBlockSubscription.py	Thu Aug 30 17:11:21 2012 +0200
@@ -77,7 +77,7 @@
         self.__checksumRe = re.compile(r"""^\s*!\s*checksum[\s\-:]+([\w\+\/=]+).*\n""",
             re.IGNORECASE | re.MULTILINE)
         self.__expiresRe = re.compile(
-            r"""(?:expires:|expires after)\s*(\d+)\s*(hour|h)?""", 
+            r"""(?:expires:|expires after)\s*(\d+)\s*(hour|h)?""",
             re.IGNORECASE)
         self.__remoteModifiedRe = re.compile(
             r"""!\s*(?:Last modified|Updated):\s*(\d{1,2})\s*"""
@@ -100,7 +100,6 @@
             "Dec": 12
         }
         
-        
         self.__parseUrl(url)
     
     def __parseUrl(self, url):

eric ide

mercurial