Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:LegacyX86
python-requirements-detector
fix-astroid-import.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-astroid-import.patch of Package python-requirements-detector
Index: requirements-detector-1.2.2/requirements_detector/handle_setup.py =================================================================== --- requirements-detector-1.2.2.orig/requirements_detector/handle_setup.py +++ requirements-detector-1.2.2/requirements_detector/handle_setup.py @@ -1,7 +1,7 @@ from pathlib import Path from typing import Union -from astroid import MANAGER, AstroidBuildingException, AstroidSyntaxError +from astroid import MANAGER, AstroidBuildingError, AstroidSyntaxError from astroid.builder import AstroidBuilder from astroid.nodes import Assign, AssignName, Call, Const, Keyword, List, Name, Tuple @@ -92,7 +92,7 @@ def from_setup_py(setup_file: Union[str, try: ast = AstroidBuilder(MANAGER).string_build(setup_file.open().read()) - except (SyntaxError, AstroidBuildingException, AstroidSyntaxError): + except (SyntaxError, AstroidBuildingError, AstroidSyntaxError): # if the setup file is broken, we can't do much about that... raise CouldNotParseRequirements
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor