Reset compiler flags to default state.
(self)
| 101 | return compile(source, filename, symbol, self.flags | PyCF_ONLY_AST, 1) |
| 102 | |
| 103 | def reset_compiler_flags(self): |
| 104 | """Reset compiler flags to default state.""" |
| 105 | # This value is copied from codeop.Compile.__init__, so if that ever |
| 106 | # changes, it will need to be updated. |
| 107 | self.flags = codeop.PyCF_DONT_IMPLY_DEDENT |
| 108 | |
| 109 | @property |
| 110 | def compiler_flags(self): |
no outgoing calls