changeset 304:c7f9997a5492

Fix codingstyle for pep8
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 10:34:07 +0200
parents c75eed90ae01
children fcbdecb0f9e0
files getan/nodes.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/getan/nodes.py	Fri Oct 11 10:13:40 2013 +0200
+++ b/getan/nodes.py	Fri Oct 11 10:34:07 2013 +0200
@@ -15,6 +15,7 @@
 
 logger = logging.getLogger(__name__)
 
+
 class Node(urwid.WidgetWrap):
 
     def __init__(self, item):
@@ -95,14 +96,16 @@
             proj_desc = ""
 
         description = urwid.Text([' ' * self.indent,
-            ('project_key', self.item.key), (' '), (proj_desc)], wrap="clip")
+                                  ('project_key', self.item.key),
+                                  (' '), (proj_desc)],
+                                 wrap="clip")
         if self._get_time():
             time = urwid.Text('%s (%s)' % (self.mode[1], time_str),
-                    align="right")
+                              align="right")
         else:
             time = urwid.Text('')
         return urwid.AttrMap(urwid.Columns([("weight", 2, description), time],
-            dividechars=1), None)
+                                           dividechars=1), None)
 
     def _get_formatted_time(self):
         return human_time(self._get_time())
@@ -136,8 +139,8 @@
 
     def get_widget(self):
         logger.debug("EntryNode: update entry '%s'." % self.item.desc)
-        row = urwid.Text(' %s [%s] %s' \
-                         % (format_datetime(self.item.start), 
+        row = urwid.Text(' %s [%s] %s'
+                         % (format_datetime(self.item.start),
                             short_time(self.item.duration().seconds),
                             self.item.desc), wrap='clip')
         return urwid.AttrMap(row, None)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)