Thu, 30 Aug 2012 17:11:21 +0200
Fixed a few PEP-8 related issues.
--- 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):