changeset 2925:381eea235ae7 beta

fix unicode issues on cleanup-repos script
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 15 Oct 2012 22:49:59 +0200
parents fcbcef60be02
children 3555c56694b5
files rhodecode/lib/cleanup.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/cleanup.py	Mon Oct 15 16:33:57 2012 +0300
+++ b/rhodecode/lib/cleanup.py	Mon Oct 15 22:49:59 2012 +0200
@@ -31,7 +31,7 @@
 
 from os.path import dirname as dn, join as jn
 from rhodecode.model import init_model
-from rhodecode.lib.utils2 import engine_from_config
+from rhodecode.lib.utils2 import engine_from_config, safe_str
 from rhodecode.model.db import RhodeCodeUi
 
 
@@ -114,8 +114,8 @@
             remove = True
         else:
             remove = ask_ok('are you sure to remove listed repos \n%s [y/n]?'
-                            % ', \n'.join(['%s removed on %s' % (x[0], x[1])
-                                           for x in to_remove]))
+                            % ', \n'.join(['%s removed on %s'
+                    % (safe_str(x[0]), safe_str(x[1])) for x in to_remove]))
 
         if remove:
             for name, date_ in to_remove: