Create a copy of this extension bound to another environment.
(self, environment)
| 68 | self.environment = environment |
| 69 | |
| 70 | def bind(self, environment): |
| 71 | """Create a copy of this extension bound to another environment.""" |
| 72 | rv = object.__new__(self.__class__) |
| 73 | rv.__dict__.update(self.__dict__) |
| 74 | rv.environment = environment |
| 75 | return rv |
| 76 | |
| 77 | def preprocess(self, source, name, filename=None): |
| 78 | """This method is called before the actual lexing and can be used to |
no test coverage detected