Skip to content

SyntaxWarning on latest Python vesrions #101

@MrBr-github

Description

@MrBr-github
root@sepik:~# python3 /hpc/local/bin/lshca
/hpc/local/bin/lshca:876: SyntaxWarning: invalid escape sequence '\['
  self.description = self.get_info_from_lspci_data("^[0-9].*", str(self._bdf) + "[^:]+: (.+?)(?= \[[a-f0-9]{4}:[a-f0-9]{4}\]|$)")
/hpc/local/bin/lshca:877: SyntaxWarning: invalid escape sequence '\['
  self.sn = self.get_info_from_lspci_data("\[SN\].*", ".*:(.+)")
/hpc/local/bin/lshca:878: SyntaxWarning: invalid escape sequence '\['
  self._pn = self.get_info_from_lspci_data("\[PN\].*", ".*:(.+)")
/hpc/local/bin/lshca:879: SyntaxWarning: invalid escape sequence '\['
  self.revision = self.get_info_from_lspci_data("\[EC\].*", ".*:(.+)")
/hpc/local/bin/lshca:886: SyntaxWarning: invalid escape sequence '\['
  self.pci_device_id = self.get_info_from_lspci_data("^[0-9].*", str(self._bdf) + ".*\[([a-f0-9]{4}:[a-f0-9]{4})\]")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions