()
| 162 | |
| 163 | |
| 164 | def get_environment(): |
| 165 | return { |
| 166 | "version": list(platform.python_version_tuple()), |
| 167 | "implementation": platform.python_implementation(), |
| 168 | "compiler": platform.python_compiler(), |
| 169 | "build": platform.python_build(), |
| 170 | "builtins": get_builtins(), |
| 171 | # TODO: 'comments': list(get_comments(source_code=source_code)) |
| 172 | } |
| 173 | |
| 174 | |
| 175 | def collect(source_code, encoding="utf-8", minimal=False): |
no test coverage detected