Open Sererim opened 2 weeks ago
I was reading the me_cleaner.py and i think i found a bug In RegionFile class
def read(self, n): if f.tell() + n <= self.region_end: return self.f.read(n) else: raise OutOfRegionException() def readinto(self, b): if f.tell() + len(b) <= self.region_end: return self.f.readinto(b) else: raise OutOfRegionException()
Why these methods work if f is undefined ?
I looked into it removed the argparser part and initilized the class and tried to use method read and pyton threw an error.
I was reading the me_cleaner.py and i think i found a bug In RegionFile class
Why these methods work if f is undefined ?
I looked into it removed the argparser part and initilized the class and tried to use method read and pyton threw an error.