Bottles
Bottles copied to clipboard
Update generic.py to repair the SyntaxWarning
Description
Please include a summary of the change and which issue is fixed (if available). Please also include relevant motivation and context.
Fixes #(issue)
when start bottles from CLI
I get /usr/share/bottles/bottles/backend/utils/generic.py:95: SyntaxWarning: invalid escape sequence '\d'
reference the python doc
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
- [ ] Test A
- [ ] Test B
SonarQube Quality Gate
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
SonarQube Quality Gate
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Pylint result on modfied files:
************* Module bottles.backend.utils.generic
bottles/backend/utils/generic.py:88:4: W0702: No exception type(s) specified (bare-except)
bottles/backend/utils/generic.py:80:8: C0415: Import outside toplevel (ctypes) (import-outside-toplevel)
