From: Daira Hopwood Date: Mon, 28 Dec 2015 20:08:22 +0000 (+0000) Subject: URIs are strs. X-Git-Url: https://git.rkrishnan.org/pf/rgr-080307.php?a=commitdiff_plain;h=48917186f26f6fd7bc5f0c60e5177775f87ddd67;p=tahoe-lafs%2Ftahoe-lafs.git URIs are strs. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/uri.py b/src/allmydata/uri.py index 372e0b8b..4d6db482 100644 --- 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""): 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