From: Neal Norwitz Date: Tue, 13 Aug 2002 17:49:18 +0000 (+0000) Subject: SF bug #574235, convert_path fails with empty pathname X-Git-Tag: v2.2.2b1~221 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0299b1c99f9adae1e9f74c64e3163e9012cb42af;p=thirdparty%2FPython%2Fcpython.git SF bug #574235, convert_path fails with empty pathname --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 1541e02de90d..abc91391e415 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -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] == '/':