# HG changeset patch # User Mads Kiilerich # Date 1465514398 -7200 # Node ID 1013af35fa60be41427f4f04806b027e73f08c64 # Parent 00cac9e136228f8d4621d3de9e64d93ea39fb413 repos: fix unicode error when scanning and finding repositories with unicode names diff -r 00cac9e13622 -r 1013af35fa60 kallithea/lib/utils.py --- a/kallithea/lib/utils.py Sun Jan 22 01:16:52 2017 +0100 +++ b/kallithea/lib/utils.py Fri Jun 10 01:19:58 2016 +0200 @@ -215,7 +215,7 @@ """ # remove ending slash for better results - path = path.rstrip(os.sep) + path = safe_str(path.rstrip(os.sep)) log.debug('now scanning in %s location recursive:%s...', path, recursive) def _get_repos(p): @@ -233,7 +233,7 @@ if skip_removed_repos and REMOVED_REPO_PAT.match(dirpath): continue - #skip . dirs + #skip . dirs TODO: rly? then we should prevent creating them ... if dirpath.startswith('.'): continue