[Sugar-devel] [PATCH sugar] fix stylistic mistake introduced by 79c85ed2
Sascha Silbe
sascha-pgp at silbe.org
Fri Jan 21 07:57:06 EST 2011
Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>
---
src/jarabe/journal/listmodel.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/jarabe/journal/listmodel.py b/src/jarabe/journal/listmodel.py
index cef636e..3902eba 100644
--- a/src/jarabe/journal/listmodel.py
+++ b/src/jarabe/journal/listmodel.py
@@ -147,9 +147,10 @@ class ListModel(gtk.GenericTreeModel, gtk.TreeDragSource):
try:
timestamp = float(metadata.get('timestamp', 0))
except (TypeError, ValueError):
- self._cached_row.append(_('Unknown'))
+ timestamp_content = _('Unknown')
else:
- self._cached_row.append(util.timestamp_to_elapsed_string(timestamp))
+ timestamp_content = util.timestamp_to_elapsed_string(timestamp)
+ self._cached_row.append(timestamp_content)
try:
creation_time = float(metadata.get('creation_time'))
--
1.7.2.3
More information about the Sugar-devel
mailing list