How does it go without the type check

This is for py36:

> TypeError: helper_furl must be bytes, got 'pb://kl5iekm6itcyjejirxva2upthepsasnn@bogus:1234/frekgeq7gsongibyeuvzmvqoyf4h5pcx' instead
This commit is contained in:
Jean-Paul Calderone 2020-10-16 19:07:28 -04:00
parent a403d25146
commit fc1f43c7a3

View File

@ -167,8 +167,6 @@ def make_uploader(helper_furl, parent, override_name=None):
:param str override_name: If not ``None``, a new name for the uploader
service. Multiple services cannot coexist with the same name.
"""
if not isinstance(helper_furl, bytes):
raise TypeError("helper_furl must be bytes, got {!r} instead".format(helper_furl))
u = upload.Uploader(helper_furl)
if override_name is not None:
u.name = override_name