Kaydet (Commit) e73b2bb4 authored tarafından Brett Cannon's avatar Brett Cannon

Be more thorough in blanking out methods grabbed off of an fp.

üst b637680f
......@@ -33,12 +33,15 @@ class addbase(object):
id(self), self.fp)
def close(self):
if self.fp:
self.fp.close()
self.fp = None
self.read = None
self.readline = None
self.readlines = None
self.fileno = None
if self.fp: self.fp.close()
self.fp = None
self.__iter__ = None
self.__next__ = None
def __enter__(self):
if self.fp is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment