Fix check for initial '-' in argv_to_abspath.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-10-19 18:24:33 +01:00 committed by Brian Warner
parent 0789d295a6
commit 903c6f1d6c

View File

@ -95,8 +95,6 @@ def argv_to_unicode(s):
except UnicodeDecodeError:
raise usage.UsageError("Argument %s cannot be decoded as %s." %
(quote_output(s), io_encoding))
if local_dir.startswith('-'):
raise usage.UsageError("Argument %s cannot start with a -." % (quote_output(s),))
def argv_to_abspath(s, **kwargs):
"""