changeset 193:6e3f99ba47ec

Simplify normalize_url.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 21 Jan 2009 20:38:10 -0600
parents 246ca614f04e
children 13ae1bded5e7
files util.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/util.py
+++ b/util.py
@@ -26,9 +26,7 @@ def generate_help():
 
 
 def normalize_url(svn_url):
-    while svn_url[-1] == '/':
-        svn_url = svn_url[:-1]
-    return svn_url
+    return svn_url.rstrip('/')
 
 
 def wipe_all_files(hg_wc_path):