[Getan-commits] [PATCH 09 of 32] Fix codingstyle for pep8
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 14:33:53 CEST 2013
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381480447 -7200
# Node ID c7f9997a54925c94940dddee9bd7bbc8f474ec71
# Parent c75eed90ae0177146c2e3f223b6bd53978ea40b8
Fix codingstyle for pep8
diff -r c75eed90ae01 -r c7f9997a5492 getan/nodes.py
--- 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)
More information about the Getan-commits
mailing list