5e6868b272957c21483d0a0a39d88f1b29d80d94,src/python/pants/tasks/protobuf_gen.py,ProtobufGen,genlang,#ProtobufGen#Any#Any#,82

Before Change


      safe_mkdir(self.java_out)
      gen = "--java_out=%s" % self.java_out
    elif lang == "python":
      safe_mkdir(self.py_out)
      gen = "--python_out=%s" % self.py_out
    else:
      raise TaskError("Unrecognized protobuf gen lang: %s" % lang)

After Change


    else:
      raise TaskError("Unrecognized protobuf gen lang: %s" % lang)

    safe_mkdir(output_dir)
    gen = "%s=%s" % (gen_flag, output_dir)

    args = [self.protobuf_binary, gen]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 5e6868b272957c21483d0a0a39d88f1b29d80d94
Time: 2014-04-23
Author: zundel@squareup.com
File Name: src/python/pants/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: genlang


Project Name: pantsbuild/pants
Commit Name: eae725b307e13349970ccbdf9bfbdc94c901a24e
Time: 2014-07-15
Author: stuhood@twitter.com
File Name: tests/python/pants_test/base_test.py
Class Name: BaseTest
Method Name: create_dir


Project Name: pantsbuild/pants
Commit Name: de2b5f1d95c3a862730ed377a6b06caf9e71ccd7
Time: 2014-08-12
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/tasks/aapt_gen.py
Class Name: AaptGen
Method Name: genlang


Project Name: pantsbuild/pants
Commit Name: 09ea4cc894ddae2f072174081108f6122c7ca68e
Time: 2017-09-25
Author: john.sirois@gmail.com
File Name: contrib/android/tests/python/pants_test/contrib/android/tasks/test_unpack_libraries.py
Class Name: UnpackLibrariesTest
Method Name: unpacked_aar_library


Project Name: pantsbuild/pants
Commit Name: ac23fb8185f77084c9dfe2794d233ad9db19714f
Time: 2015-03-04
Author: dhamon@twopensource.com
File Name: contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_library_create.py
Class Name: CppLibraryCreate
Method Name: _link_library