701e2f54f611b767b6b279d1fa8609c26a6d9afb,cleverhans/devtools/tests/test_format.py,,test_format_pep8,#,50
Before Change
try:
bad_out = bad_out + "\n" + e.output
except TypeError:
endline_type_str = str(type("\n"))
raise TypeError(("Could not add: bad_out (type %s), "
"endline char (type %s), "
" and e.output (type %s)") %
(str(type(bad_out)), endline_type_str,
str(type(e.output))))
if len(bad_out) > 0:
raise ValueError(bad_out)
After Change
try:
out = shell_call(["pylint", "--rcfile", rcpath, f])
except subprocess.CalledProcessError as e:
bad_out = bad_out + "\n" + e.output.decode("utf-8")
if len(bad_out) > 0:
raise ValueError(bad_out)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: tensorflow/cleverhans
Commit Name: 701e2f54f611b767b6b279d1fa8609c26a6d9afb
Time: 2018-09-27
Author: goodfellow@google.com
File Name: cleverhans/devtools/tests/test_format.py
Class Name:
Method Name: test_format_pep8
Project Name: biolab/orange3
Commit Name: 9f488be9e08bb08a3aeb1346d52d981a2d3f1ca9
Time: 2015-10-30
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: get_html_img
Project Name: biolab/orange3
Commit Name: 9296313084c86e7d2290862188d13487274468b6
Time: 2015-12-04
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: get_html_img