From 4b9bf10c071936c1d3e39ac53bacbe11a770f4a1 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 4 Jul 2009 10:21:10 +0000 Subject: [PATCH] bug fix, correctly query system svn: r12763 --- src/Utils.py | 2 +- src/gui/views/treemodels/flatbasemodel.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Utils.py b/src/Utils.py index 5e234a200..1e4cfc014 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -237,7 +237,7 @@ def encodingdefs(): """ pass -if platform in WINDOWS: +if platform.system() in WINDOWS: # python encoding is ascii, but C functions need to recieve the # windows codeset, so convert over to it conv_utf8_tosrtkey = lambda x: locale.strxfrm(x.decode("utf-8").encode( diff --git a/src/gui/views/treemodels/flatbasemodel.py b/src/gui/views/treemodels/flatbasemodel.py index 269f13fa8..a3fdeb3f4 100644 --- a/src/gui/views/treemodels/flatbasemodel.py +++ b/src/gui/views/treemodels/flatbasemodel.py @@ -450,7 +450,6 @@ class FlatBaseModel(gtk.GenericTreeModel): """ Total number of items that maximally can be shown """ - print 'total asked', self.node_map.max_rows() return self.node_map.max_rows() def displayed(self):