Home
last modified time | relevance | path

Searched refs:does_tree_import (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/lib2to3/tests/
Dtest_util.py116 def does_tree_import(self, package, name, string): member in Test_does_tree_import
120 return fixer_util.does_tree_import(package, name, node)
129 n = self.does_tree_import(package, name, import_ + "\n" + string)
131 n = self.does_tree_import(package, name, string + "\n" + import_)
142 n = self.does_tree_import(package, name, import_ + "\n" + string)
144 n = self.does_tree_import(package, name, string + "\n" + import_)
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_util.py113 def does_tree_import(self, package, name, string): member in Test_does_tree_import
117 return fixer_util.does_tree_import(package, name, node)
126 n = self.does_tree_import(package, name, import_ + "\n" + string)
128 n = self.does_tree_import(package, name, string + "\n" + import_)
139 n = self.does_tree_import(package, name, import_ + "\n" + string)
141 n = self.does_tree_import(package, name, string + "\n" + import_)
/external/python/cpython2/Lib/lib2to3/
Dfixer_base.py12 from .fixer_util import does_tree_import
186 self._should_skip = does_tree_import(pkg, name, node)
Dfixer_util.py282 def does_tree_import(package, name, node): function
303 if does_tree_import(package, name, root):
/external/python/cpython3/Lib/lib2to3/
Dfixer_base.py12 from .fixer_util import does_tree_import
185 self._should_skip = does_tree_import(pkg, name, node)
Dfixer_util.py303 def does_tree_import(package, name, node): function
324 if does_tree_import(package, name, root):