Changeset 529 for pkpgcounter/trunk/pkpgpdls/pdlparser.py
- Timestamp:
- 11/28/07 20:48:45 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pdlparser.py
r527 r529 43 43 required = [] # Default list of required commands 44 44 openmode = "rb" # Default file opening mode 45 def __init__(self, parent, (firstblock, lastblock)) :45 def __init__(self, parent, filename, (firstblock, lastblock)) : 46 46 """Initialize the generic parser.""" 47 47 self.parent = parent 48 48 # We need some copies for later inclusion of parsers which 49 49 # would modify the parent's values 50 self.filename = parent.filename[:]50 self.filename = filename[:] 51 51 self.firstblock = firstblock[:] 52 52 self.lastblock = lastblock[:]