diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-05-21 17:50:41 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-05-21 17:50:41 (GMT) |
commit | ed24f85ead3b9299aea56d853fc58c542d3207f4 (patch) | |
tree | c535d382cc58a70fad7513a38bb9c29d30af93ca /sessionstore.py | |
parent | f535de7394b9d7279e59b62b0f0ede82106036ff (diff) |
First round of pylint fixes.
Diffstat (limited to 'sessionstore.py')
-rw-r--r-- | sessionstore.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sessionstore.py b/sessionstore.py index 2b96ea0..d4ed3b2 100644 --- a/sessionstore.py +++ b/sessionstore.py @@ -50,20 +50,22 @@ def _get_history(history): return entries_dest def _set_history(history, history_data): - history_internal = history.queryInterface(interfaces.nsISHistoryInternal); + history_internal = history.queryInterface(interfaces.nsISHistoryInternal) if history_internal.count > 0: - history_internal.purgeHistory(history_internal.count); + history_internal.purgeHistory(history_internal.count) for entry_dict in history_data: logging.debug('entry_dict: %r' % entry_dict) - entry_class = components.classes["@mozilla.org/browser/session-history-entry;1"] + entry_class = components.classes[ \ + "@mozilla.org/browser/session-history-entry;1"] entry = entry_class.createInstance(interfaces.nsISHEntry) - io_service_class = components.classes["@mozilla.org/network/io-service;1"] + io_service_class = components.classes[ \ + "@mozilla.org/network/io-service;1"] io_service = io_service_class.getService(interfaces.nsIIOService) - entry.setURI(io_service.newURI(entry_dict['url'], None, None)); - entry.setTitle(entry_dict['title']); + entry.setURI(io_service.newURI(entry_dict['url'], None, None)) + entry.setTitle(entry_dict['title']) history_internal.addEntry(entry, True) |