From 1a621ec3cf043733e1e8a949a278b906a58719d4 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Fri, 19 May 2023 07:09:58 -0500 Subject: [PATCH] Update FileIO.py --- FileIO.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FileIO.py b/FileIO.py index 702642c..c0cf891 100644 --- a/FileIO.py +++ b/FileIO.py @@ -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