milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

urllib.error.URLError: <urlopen error unknown url type: b'http>, #181

Open imaxu opened 4 years ago

imaxu commented 4 years ago

with py3.8,I found a error when I save a file : urllib.error.URLError: <urlopen error unknown url type: b'http>, I found the codes:

        if cls.__name__ == 'File':
             request = Request(url.encode('utf-8'), data, headers)
         else:
             request = Request(url, data, headers)

it will be a bytes array when url.encode('utf-8'), why do this ?

kilabyte commented 1 year ago

https://github.com/milesrichardson/ParsePy/issues/157