virtual_sdcard: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0da3d84a87
commit
b3a39bebd4
|
@ -177,7 +177,7 @@ class VirtualSD:
|
||||||
if fname not in flist:
|
if fname not in flist:
|
||||||
fname = files_by_lower[fname.lower()]
|
fname = files_by_lower[fname.lower()]
|
||||||
fname = os.path.join(self.sdcard_dirname, fname)
|
fname = os.path.join(self.sdcard_dirname, fname)
|
||||||
f = open(fname, 'rb')
|
f = open(fname, 'r')
|
||||||
f.seek(0, os.SEEK_END)
|
f.seek(0, os.SEEK_END)
|
||||||
fsize = f.tell()
|
fsize = f.tell()
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue