Skip to content

use raw string to proper escape sequence#396

Closed
brccabral wants to merge 1 commit intovinifmor:masterfrom
brccabral:raw_str
Closed

use raw string to proper escape sequence#396
brccabral wants to merge 1 commit intovinifmor:masterfrom
brccabral:raw_str

Conversation

@brccabral
Copy link
Copy Markdown
Contributor

Removes these error messages, probably solves other issues...

bauh/gems/arch/pacman.py:293: SyntaxWarning: invalid escape sequence '\s'
for o in new_subprocess(['grep', '-Po', "Repository\s+:\s+\K.+"], stdin=info.stdout).stdout:
bauh/gems/arch/pacman.py:346: SyntaxWarning: invalid escape sequence '\s'
for out in new_subprocess(['grep', '-Po', 'Provides\s+:\s\K(.+)'], stdin=dep_info.stdout).stdout:
bauh/gems/arch/pacman.py:375: SyntaxWarning: invalid escape sequence '\s'
for out in new_subprocess(['grep', '-Po', 'Depends\s+On\s+:\s\K(.+)'], stdin=dep_info.stdout).stdout:
bauh/gems/flatpak/flatpak.py:19: SyntaxWarning: invalid escape sequence '\s'
RE_REQUIRED_RUNTIME = re.compile(f'Required\s+runtime\s+.+(([\w./]+))\s*.+\s+remote\s+([\w+./]+)')
bauh/gems/debian/index.py:143: SyntaxWarning: invalid escape sequence '\s'
self._re_desktop_file_fields = re.compile('(Exec|TryExec|Icon|Categories|NoDisplay|Terminal)\s*=\s*(.+)')

@brccabral
Copy link
Copy Markdown
Contributor Author

same as #380

@brccabral brccabral closed this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant