Open a new file named 'filename'. This overrides both the 'filename' and 'file' arguments to the constructor.
(self, filename)
| 109 | self.linebuf = [] |
| 110 | |
| 111 | def open(self, filename): |
| 112 | """Open a new file named 'filename'. This overrides both the |
| 113 | 'filename' and 'file' arguments to the constructor.""" |
| 114 | self.filename = filename |
| 115 | self.file = io.open(self.filename, 'r', errors=self.errors) |
| 116 | self.current_line = 0 |
| 117 | |
| 118 | def close(self): |
| 119 | """Close the current file and forget everything we know about it |
no outgoing calls
no test coverage detected