File: pylint_pyopencl.py

package info (click to toggle)
sasmodels 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 16,488 kB
  • sloc: python: 26,277; ansic: 8,036; makefile: 150; sh: 63
file content (11 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
from astroid import MANAGER
from astroid import nodes

def register(linter):
    MANAGER.register_transform(nodes.Module, transform)

def transform(module):
    #print("processing",module.name)
    if module.name == 'pyopencl':
        import pyopencl
        import pyopencl as cl