Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Update generic.py to repair the SyntaxWarning

Open TDYQ-Liu opened this issue 1 year ago • 1 comments
trafficstars

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

TDYQ-Liu avatar Feb 21 '24 02:02 TDYQ-Liu

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

fab-sonarqube[bot] avatar Feb 21 '24 02:02 fab-sonarqube[bot]

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

fab-sonarqube[bot] avatar Mar 25 '24 20:03 fab-sonarqube[bot]

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)

github-actions[bot] avatar Mar 25 '24 20:03 github-actions[bot]