diff util.py @ 193:6e3f99ba47ec

Simplify normalize_url.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 21 Jan 2009 20:38:10 -0600
parents 6266ba36ee15
children 906d3f302b45
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):