From 9b0531ff33eadd9d489c767e8f3627acb72c6549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrer=20=C3=96zen?= Date: Tue, 11 Oct 2005 21:18:33 +0000 Subject: [PATCH] =?UTF-8?q?pisi.cli=20i=C3=A7indeki=20printu'yu=20kullanal?= =?UTF-8?q?=C4=B1m,=20duplicate=20code'a=20gerek=20yok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/repostats.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/repostats.py b/tools/repostats.py index 642e604c..241f5b02 100755 --- a/tools/repostats.py +++ b/tools/repostats.py @@ -20,6 +20,7 @@ _ = __trans.ugettext sys.path.append('.') import pisi.specfile import pisi.uri +from pisi.cli import printu # default html templates @@ -150,14 +151,6 @@ valid_filetypes = [ "all" ] -def printu(obj): - if isinstance(obj, unicode): - print obj.encode('utf-8') - elif isinstance(obj, str): - print obj.decode('utf-8') - else: - print str(obj) - def valuesort(x, y): if x[1] > y[1]: return -1