##// END OF EJS Templates
util: canonpath: simplify logic...
Nicolas Dumazet -
r9386:eae98607 default
parent child Browse files
Show More
@@ -266,9 +266,7 b' def pathto(root, n1, n2):'
266
266
267 def canonpath(root, cwd, myname):
267 def canonpath(root, cwd, myname):
268 """return the canonical path of myname, given cwd and root"""
268 """return the canonical path of myname, given cwd and root"""
269 if root == os.sep:
269 if endswithsep(root):
270 rootsep = os.sep
271 elif endswithsep(root):
272 rootsep = root
270 rootsep = root
273 else:
271 else:
274 rootsep = root + os.sep
272 rootsep = root + os.sep
General Comments 0
You need to be logged in to leave comments. Login now