diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2011-05-21 12:12:10 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-05-21 12:24:25 (GMT) |
commit | 14da529ec77941a93ed3066ed02a10113ffe31d5 (patch) | |
tree | 8e9e741410c0d0d3a08296143a1f40f5ac2a7bbd /webactivity.py | |
parent | 7964449b0be7f941a533013b558a404db7873398 (diff) |
fix PEP8 whitespace issues
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Diffstat (limited to 'webactivity.py')
-rw-r--r-- | webactivity.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/webactivity.py b/webactivity.py index d744ab1..480ea9a 100644 --- a/webactivity.py +++ b/webactivity.py @@ -114,13 +114,13 @@ def _seed_xs_cookie(): _logger.debug('seed_xs_cookie: Cookie exists already') return - expire = int(time.time()) + 10*365*24*60*60 + expire = int(time.time()) + 10 * 365 * 24 * 60 * 60 c.execute('''INSERT INTO moz_cookies (name, value, host, path, expiry, lastAccessed, isSecure, isHttpOnly) VALUES(?,?,?,?,?,?,?,?)''', ('xoid', cjson.encode(cookie_data), jabber_server, - '/', expire, 0, 0, 0 )) + '/', expire, 0, 0, 0)) cookies_db.commit() cookies_db.close() except sqlite3.Error, e: @@ -147,7 +147,7 @@ def _set_accept_languages(): lang = lang.split('_') # e.g. es-uy, es - pref = lang[0] + "-" + lang[1].lower() + ", " + lang[0] + pref = lang[0] + "-" + lang[1].lower() + ", " + lang[0] cls = components.classes["@mozilla.org/preferences-service;1"] prefService = cls.getService(components.interfaces.nsIPrefService) branch = prefService.getBranch('') @@ -369,7 +369,7 @@ class WebActivity(activity.Activity): self.tube_conn = TubeConnection(self.conn, self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES], - identifier, group_iface = self.text_chan[ + identifier, group_iface=self.text_chan[ telepathy.CHANNEL_INTERFACE_GROUP]) _logger.debug('Tube created') @@ -547,7 +547,8 @@ class WebActivity(activity.Activity): item = LinkButton(url, buf, color, title, owner, index, hash) item.connect('clicked', self._link_clicked_cb, url) item.connect('remove_link', self._link_removed_cb) - self._tray.add_item(item, index) # use index to add to the tray + # use index to add to the tray + self._tray.add_item(item, index) item.show() if self._tray.props.visible is False: self._tray.show() |