4 ms·
f doesn't refer to anything. iterating over the file object at all instead of just calling self.cache = openFile.readlines() means that calling strip() the lin
by yifanl 2y ago
f doesn't refer to anything.
iterating over the file object at all instead of just calling self.cache = openFile.readlines() means that calling strip() the line below removes data beyond just the trailing newlines.