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