Kaydet (Commit) 0299b1c9 authored tarafından Neal Norwitz's avatar Neal Norwitz

SF bug #574235, convert_path fails with empty pathname

üst e5c877f0
......@@ -84,6 +84,8 @@ def convert_path (pathname):
"""
if os.sep == '/':
return pathname
if not pathname:
return pathname
if pathname[0] == '/':
raise ValueError, "path '%s' cannot be absolute" % pathname
if pathname[-1] == '/':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment