Parse module defined in *uri*
(self, uri)
| 204 | return relpath.replace(os.path.sep, '.') |
| 205 | |
| 206 | def _parse_module(self, uri): |
| 207 | ''' Parse module defined in *uri* ''' |
| 208 | filename = self._uri2path(uri) |
| 209 | if filename is None: |
| 210 | # nothing that we could handle here. |
| 211 | return ([],[]) |
| 212 | with open(filename, 'rb') as f: |
| 213 | mod = ast.parse(f.read()) |
| 214 | return FuncClsScanner().scan(mod) |
| 215 | |
| 216 | def _import_funcs_classes(self, uri): |
| 217 | """Import * from uri, and separate out functions and classes.""" |
no test coverage detected