Document furl type.

This commit is contained in:
Itamar Turner-Trauring 2020-12-08 10:28:47 -05:00
parent c1a699dede
commit 0b7c0bf451

View File

@ -558,6 +558,9 @@ class _FoolscapStorage(object):
}
*nickname* is optional.
The furl will be a Unicode string on Python 3; on Python 2 it will be
either a native (bytes) string or a Unicode string.
"""
furl = furl.encode("utf-8")
m = re.match(br'pb://(\w+)@', furl)