##// END OF EJS Templates
fix unicode issues on cleanup-repos script
marcink -
r2925:381eea23 beta
parent child Browse files
Show More
@@ -31,7 +31,7 b' import datetime'
31
31
32 from os.path import dirname as dn, join as jn
32 from os.path import dirname as dn, join as jn
33 from rhodecode.model import init_model
33 from rhodecode.model import init_model
34 from rhodecode.lib.utils2 import engine_from_config
34 from rhodecode.lib.utils2 import engine_from_config, safe_str
35 from rhodecode.model.db import RhodeCodeUi
35 from rhodecode.model.db import RhodeCodeUi
36
36
37
37
@@ -114,8 +114,8 b' class CleanupCommand(BasePasterCommand):'
114 remove = True
114 remove = True
115 else:
115 else:
116 remove = ask_ok('are you sure to remove listed repos \n%s [y/n]?'
116 remove = ask_ok('are you sure to remove listed repos \n%s [y/n]?'
117 % ', \n'.join(['%s removed on %s' % (x[0], x[1])
117 % ', \n'.join(['%s removed on %s'
118 for x in to_remove]))
118 % (safe_str(x[0]), safe_str(x[1])) for x in to_remove]))
119
119
120 if remove:
120 if remove:
121 for name, date_ in to_remove:
121 for name, date_ in to_remove:
General Comments 0
You need to be logged in to leave comments. Login now