python/trisurf/trisurf.py
@@ -199,11 +199,16 @@ Internal method for determining the number of the lines in the most efficient way. Is it really the most efficient? ''' f = open(self.fullname, "r+") try: buf = mmap.mmap(f.fileno(), 0) lines = 0 readline = buf.readline while readline(): lines += 1 f.close() except: lines=0 f.close() return lines def read(self):