# HG changeset patch # User Marcin Kuzminski # Date 1325824794 -7200 # Node ID 445861e156d16a19884c9df73787af2e5a542894 # Parent 971ce5e20856d4d38d95622a367d11b8d7ddf1a0 normalize path using os.sep diff -r 971ce5e20856 -r 445861e156d1 rhodecode/lib/utils.py --- 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):