changeset 1836:445861e156d1 beta

normalize path using os.sep
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 06 Jan 2012 06:39:54 +0200
parents 971ce5e20856
children a6a30c919513
files rhodecode/lib/utils.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/utils.py	Fri Jan 06 06:19:04 2012 +0200
+++ b/rhodecode/lib/utils.py	Fri Jan 06 06:39:54 2012 +0200
@@ -152,12 +152,12 @@
     """
     Scans given path for repos and return (name,(type,path)) tuple
 
-    :param path: path to scann for repositories
+    :param path: path to scan for repositories
     :param recursive: recursive search and return names with subdirs in front
     """
 
     # remove ending slash for better results
-    path = path.rstrip('/')
+    path = path.rstrip(os.sep)
 
     def _get_repos(p):
         if not os.access(p, os.W_OK):