diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-06-05 09:09:01 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-06-05 09:09:01 (GMT) |
commit | bfe23fd00e43e70c6e0e460d1c6ec70abf981949 (patch) | |
tree | 1720e45f448abce79516fdb5ce75483846c551ea /src/view | |
parent | 605fe4561f7ea6b1a9ef8b770cfd8c7a2414e20b (diff) |
Pylint cleanups
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/clipboardicon.py | 4 | ||||
-rw-r--r-- | src/view/home/HomeBox.py | 1 | ||||
-rw-r--r-- | src/view/home/activitiesring.py | 1 | ||||
-rw-r--r-- | src/view/keyhandler.py | 6 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/view/clipboardicon.py b/src/view/clipboardicon.py index 383c565..bd99b3a 100644 --- a/src/view/clipboardicon.py +++ b/src/view/clipboardicon.py @@ -43,6 +43,7 @@ class ClipboardIcon(RadioToolButton): self.owns_clipboard = False self.props.sensitive = False self.props.active = False + self._notif_icon = None self._icon = Icon() self._icon.props.xo_color = profile.get_color() @@ -155,7 +156,8 @@ class ClipboardIcon(RadioToolButton): XoColor('%s,%s' % (self._icon.props.stroke_color, self._icon.props.fill_color)) frame = view.frame.frame.get_instance() - frame.add_notification(self._notif_icon, view.frame.frame.BOTTOM_LEFT) + frame.add_notification(self._notif_icon, + view.frame.frame.BOTTOM_LEFT) def _notify_active_cb(self, widget, pspec): if self.props.active: diff --git a/src/view/home/HomeBox.py b/src/view/home/HomeBox.py index 0c75af6..fa22a11 100644 --- a/src/view/home/HomeBox.py +++ b/src/view/home/HomeBox.py @@ -15,7 +15,6 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from gettext import gettext as _ -import logging import gobject import gtk diff --git a/src/view/home/activitiesring.py b/src/view/home/activitiesring.py index beb1e81..aae3dea 100644 --- a/src/view/home/activitiesring.py +++ b/src/view/home/activitiesring.py @@ -19,7 +19,6 @@ import os import logging import signal from gettext import gettext as _ -import re import math import gobject diff --git a/src/view/keyhandler.py b/src/view/keyhandler.py index dcb00c8..0495cb0 100644 --- a/src/view/keyhandler.py +++ b/src/view/keyhandler.py @@ -206,7 +206,8 @@ class KeyHandler(object): self._screen_rotation += 1 self._screen_rotation %= 4 - actual_keycodes = keycodes[self._screen_rotation:self._screen_rotation + 4] + actual_keycodes = keycodes[self._screen_rotation:self._screen_rotation + + 4] # code_pairs now contains a mapping of keycode -> keysym in the current # orientation code_pairs = zip(actual_keycodes, keysyms) @@ -221,7 +222,8 @@ class KeyHandler(object): # with CalledProcessError, which we raise. try: subprocess.check_call(argv) - subprocess.check_call(['xrandr', '-o', states[self._screen_rotation]]) + subprocess.check_call(['xrandr', '-o', + states[self._screen_rotation]]) except OSError, e: if e.errno != errno.EINTR: raise |