0a6edd21b9ab29a1f733b90ff15092e7a03f665d,src/python/twitter/pants/python/thrift_builder.py,PythonThriftBuilder,__init__,#PythonThriftBuilder#Any#Any#Any#,42
Before Change
self.root = root_dir
self.config = config
distdir = os.path.join(self.root, "dist")
self.chroot = RelativeChroot(root_dir, distdir, target.name)
codegen_root = tempfile.mkdtemp(dir=self.chroot.path(), prefix="codegen.")
self.codegen_root = os.path.relpath(codegen_root, self.chroot.path())
self.detected_packages = set()
self.detected_namespace_packages = set()
def __del__(self):
After Change
def run_thrifts(self):
def is_py_thrift(target):
return isinstance(target, PythonThriftLibrary)
bases, roots = calculate_compile_roots([self.target], is_py_thrift)
for src in roots:
if not self._run_thrift(src, bases):
raise PythonThriftBuilder.CodeGenerationException(
"Could not generate .py from %s!" % src)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pantsbuild/pants
Commit Name: 0a6edd21b9ab29a1f733b90ff15092e7a03f665d
Time: 2014-01-15
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/python/thrift_builder.py
Class Name: PythonThriftBuilder
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: a4cb83436274d636bae946932f478e183b61bc28
Time: 2013-05-17
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 3f5e994767718a930681d75bd59154525b02cd18
Time: 2014-01-19
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/python/thrift_builder.py
Class Name: PythonThriftBuilder
Method Name: __init__