now works with piped STDOUT | STDIN constructs.

This commit is contained in:
Philip Eisenlohr 2012-02-16 18:03:14 +00:00
parent ae8ec80dd0
commit c24f258eba
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class ASCIItable():
self.labels = firstline.split()
self.headerLen = 1
self.__IO__['validReadSize'] = len(self.labels)
self.__IO__['dataStart'] = self.__IO__['in'].tell()
try:
self.__IO__['dataStart'] = self.__IO__['in'].tell()
except IOError:
pass
# ------------------------------------------------------------------
def head_write(self):