Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:3dprinting
python-Werkzeug
werkzeug-if_value_is_dont_fail.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File werkzeug-if_value_is_dont_fail.patch of Package python-Werkzeug
diff -urN werkzeug-3.0.1/src/werkzeug/_internal.py werkzeug-3.0.1-patch/src/werkzeug/_internal.py --- werkzeug-3.0.1/src/werkzeug/_internal.py 2023-10-24 23:52:38.000000000 +0300 +++ werkzeug-3.0.1-patch/src/werkzeug/_internal.py 2023-11-09 09:40:47.123773929 +0200 @@ -207,8 +207,9 @@ Any leading or trailing whitespace is stripped """ - value = value.strip() - if _plain_int_re.fullmatch(value) is None: - raise ValueError + if isinstance(value, int) is False: + value = value.strip() + if _plain_int_re.fullmatch(value) is None: + raise ValueError return int(value)
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