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:
46719a8
)
URIs are strs.
author
Daira Hopwood
<daira@jacaranda.org>
Mon, 28 Dec 2015 20:08:22 +0000
(20:08 +0000)
committer
Daira Hopwood
<daira@jacaranda.org>
Mon, 28 Dec 2015 20:12:29 +0000
(20:12 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/uri.py
patch
|
blob
|
history
diff --git
a/src/allmydata/uri.py
b/src/allmydata/uri.py
index 372e0b8be2605eb49c755b7a6aa45b588be1901f..4d6db482984fe5acec212b338ecc81727454cb29 100644
(file)
--- a/
src/allmydata/uri.py
+++ b/
src/allmydata/uri.py
@@
-730,7
+730,7
@@
ALLEGED_IMMUTABLE_PREFIX = 'imm.'
def from_string(u, deep_immutable=False, name=u"<unknown name>"):
if not isinstance(u, str):
- raise TypeError("
unknown URI type: %s.." % str(u)[:100]
)
+ raise TypeError("
URI must be str: %r" % (u,)
)
# We allow and check ALLEGED_READONLY_PREFIX or ALLEGED_IMMUTABLE_PREFIX
# on all URIs, even though we would only strictly need to do so for caps of