|
|
|
|
|
walk(self,
ast,
filename)
Validate each node in AST and raise SecurityError if the code is not
safe. |
source code
|
|
|
|
visit(self,
node,
*args)
Recursively validate node and all of its children. |
source code
|
|
|
|
visitName(self,
node,
*args)
Disallow any attempts to access a restricted attr. |
source code
|
|
|
|
visitGetattr(self,
node,
*args)
Disallow any attempts to access a restricted attribute. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
fail(self,
node,
*args)
Default callback for unallowed AST nodes. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|