file handle closing can now be done from within class.

methods:
.input_close()
.output_close()
This commit is contained in:
Philip Eisenlohr 2014-08-22 15:37:46 +00:00
parent 99e3c9a397
commit d5e2e42f21
1 changed files with 8 additions and 0 deletions

View File

@ -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):
''' '''