Skip to content

SyntaxWarning: invalid escape sequence with Python 3.12 #32

@fernandolcx

Description

@fernandolcx

Ubuntu Noble uses Python 3.12, when installing the package this is shown:

/usr/lib/python3/dist-packages/sasutils/cli/sas_devices.py:354: SyntaxWarning: invalid escape sequence '\D'
  return int(re.sub("\D", "", o.scsi_generic.name))
/usr/lib/python3/dist-packages/sasutils/cli/sas_devices.py:438: SyntaxWarning: invalid escape sequence '\s'
  grp_format = re.sub('\s*\{%s.*?\}\s*' % field, ' ',

This doesn't happen in Bookworm + Python 3.11

https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions