~ubuntu-branches/ubuntu/trusty/pylint/trusty

« back to all changes in this revision

Viewing changes to examples/custom.py

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Thénault
  • Date: 2006-09-25 16:46:40 UTC
  • mfrom: (1.2.1 upstream) (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20060925164640-obkb6g34gqtyk20n
new uptream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from logilab.common import astng
 
1
from logilab import astng
2
2
 
3
 
from logilab.pylint.interfaces import IASTNGChecker
4
 
from logilab.pylint.checkers import BaseChecker
 
3
from pylint.interfaces import IASTNGChecker
 
4
from pylint.checkers import BaseChecker
5
5
 
6
6
class MyASTNGChecker(BaseChecker):
7
7
    """add member attributes defined using my own "properties" function
27
27
                and node.node.expr.name == 'properties'
28
28
                and node.node.attrname == 'create'):
29
29
            return
30
 
        in_class = node.get_frame()
 
30
        in_class = node.frame()
31
31
        for param in node.args:
32
32
            in_class.locals[param.name] = node
33
33