You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Update FileIO.py
This commit is contained in:
@@ -2,12 +2,12 @@ from io import BytesIO
|
||||
import struct
|
||||
|
||||
class FileIO(object):
|
||||
def __init__(self, path="", mode="r+b", endian="little"):
|
||||
self.f = path
|
||||
def __init__(self, path, mode="r+b", endian="little"):
|
||||
self.mode = mode
|
||||
self._isBitesIO = False
|
||||
if type(path) is bytes:
|
||||
self.path = None
|
||||
self.f = path
|
||||
self.is_memory_file = True
|
||||
elif type(path) is BytesIO:
|
||||
self.path = None
|
||||
|
||||
Reference in New Issue
Block a user