Fix check for initial '-' in argv_to_abspath.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 19 Oct 2015 17:24:33 +0000 (18:24 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 5 Feb 2016 21:59:36 +0000 (21:59 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/util/encodingutil.py

index 4eff033abe26385f55c4845945b3a686505eb72a..efd1e218c1306076f5becc4afd0ada1f630a3731 100644 (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):
     """