file handle closing can now be done from within class.
methods: .input_close() .output_close()
This commit is contained in:
parent
99e3c9a397
commit
d5e2e42f21
|
@ -43,6 +43,10 @@ class ASCIItable():
|
||||||
except:
|
except:
|
||||||
return 0.0
|
return 0.0
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
def input_close(self):
|
||||||
|
return self.__IO__['in'].close()
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
def output_write(self,
|
def output_write(self,
|
||||||
what):
|
what):
|
||||||
|
@ -73,6 +77,10 @@ class ASCIItable():
|
||||||
def output_clear(self):
|
def output_clear(self):
|
||||||
self.__IO__['output'] = []
|
self.__IO__['output'] = []
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
def output_close(self):
|
||||||
|
return self.__IO__['out'].close()
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
def head_read(self):
|
def head_read(self):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue