projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a51eba
)
Fix check for initial '-' in argv_to_abspath.
author
Daira Hopwood
<daira@jacaranda.org>
Mon, 19 Oct 2015 17:24:33 +0000
(18:24 +0100)
committer
Daira 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
patch
|
blob
|
history
diff --git
a/src/allmydata/util/encodingutil.py
b/src/allmydata/util/encodingutil.py
index 4eff033abe26385f55c4845945b3a686505eb72a..efd1e218c1306076f5becc4afd0ada1f630a3731 100644
(file)
--- a/
src/allmydata/util/encodingutil.py
+++ b/
src/allmydata/util/encodingutil.py
@@
-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):
"""