Mercurial > kallithea
changeset 3383:c8fd8cca71f2 beta
cleanup: remove superfluous os.path.join on absolute path
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 19 Feb 2013 19:44:30 +0100 |
parents | b8cb1fe622e9 |
children | 95c38de476a7 |
files | rhodecode/lib/paster_commands/cleanup.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/paster_commands/cleanup.py Tue Feb 12 17:03:10 2013 +0100 +++ b/rhodecode/lib/paster_commands/cleanup.py Tue Feb 19 19:44:30 2013 +0100 @@ -116,9 +116,9 @@ % (safe_str(x[0]), safe_str(x[1])) for x in to_remove])) if remove: - for name, date_ in to_remove: - print >> sys.stdout, 'removing repository %s' % name - shutil.rmtree(os.path.join(repos_location, name)) + for path, date_ in to_remove: + print >> sys.stdout, 'removing repository %s' % path + shutil.rmtree(path)) else: print 'nothing done exiting...' sys.exit(0)