bytestringify path from tempfile name in fetchart

This commit is contained in:
Johnny Robeson 2016-07-02 04:53:14 -04:00
parent ce8d1c0c28
commit 915ec59500

View file

@ -53,7 +53,7 @@ def temp_file_for(path):
"""
ext = os.path.splitext(path)[1]
with NamedTemporaryFile(suffix=ext, delete=False) as f:
return f.name
return util.bytestring_path(f.name)
def pil_resize(maxwidth, path_in, path_out=None):