dee363930f4d4f37438695128e082a1266253d26,src/python/pants/backend/python/macros/python_requirements.py,PythonRequirements,__call__,#,49
Before Change
req_file = Path(get_buildroot(), self._parse_context.rel_path, requirements_relpath)
requirements = []
for i, line in enumerate(req_file.read_text().splitlines()):
line = line.strip()
if not line or line.startswith("//") or line.startswith("-"):
continue
try:
req = Requirement.parse(line)
except Exception as e:
raise ValueError(
After Change
req_file = Path(get_buildroot(), self._parse_context.rel_path, requirements_relpath)
requirements = parse_requirements_file(
req_file.read_text(), rel_path=str(req_file.relative_to(get_buildroot()))
)
for parsed_req in requirements:
req_module_mapping = (
{parsed_req.project_name: module_mapping[parsed_req.project_name]}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: dee363930f4d4f37438695128e082a1266253d26
Time: 2021-01-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/macros/python_requirements.py
Class Name: PythonRequirements
Method Name: __call__
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: On
Method Name: apply
Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: Off
Method Name: apply