| 118 | self.flags = PyCF_DONT_IMPLY_DEDENT | PyCF_ALLOW_INCOMPLETE_INPUT |
| 119 | |
| 120 | def __call__(self, source, filename, symbol, **kwargs): |
| 121 | flags = self.flags |
| 122 | if kwargs.get('incomplete_input', True) is False: |
| 123 | flags &= ~PyCF_DONT_IMPLY_DEDENT |
| 124 | flags &= ~PyCF_ALLOW_INCOMPLETE_INPUT |
| 125 | codeob = compile(source, filename, symbol, flags, True) |
| 126 | for feature in _features: |
| 127 | if codeob.co_flags & feature.compiler_flag: |
| 128 | self.flags |= feature.compiler_flag |
| 129 | return codeob |
| 130 | |
| 131 | class CommandCompiler: |
| 132 | """Instances of this class have __call__ methods identical in |