mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
URIs are strs.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
46719a8bcf
commit
48917186f2
@ -730,7 +730,7 @@ ALLEGED_IMMUTABLE_PREFIX = 'imm.'
|
|||||||
|
|
||||||
def from_string(u, deep_immutable=False, name=u"<unknown name>"):
|
def from_string(u, deep_immutable=False, name=u"<unknown name>"):
|
||||||
if not isinstance(u, str):
|
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
|
# 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
|
# on all URIs, even though we would only strictly need to do so for caps of
|
||||||
|
Loading…
Reference in New Issue
Block a user