gh-pages
Last change
on this file since d1fe925 was
d1fe925,
checked in by ajj, 8 years ago
|
Creating gh_pages branch for docs
|
-
Property mode set to
100644
|
File size:
348 bytes
|
Line | |
---|
1 | from astroid import MANAGER |
---|
2 | from astroid import nodes |
---|
3 | |
---|
4 | def register(linter): |
---|
5 | MANAGER.register_transform(nodes.Module, transform) |
---|
6 | |
---|
7 | def transform(module): |
---|
8 | #print("processing",module.name) |
---|
9 | if module.name.startswith('numpy'): |
---|
10 | if module.name == 'numpy': import numpy |
---|
11 | elif module.name == 'numpy.random': import numpy.random |
---|
12 | |
---|
Note: See
TracBrowser
for help on using the repository browser.