Skip to content

Mark string as raw string#135

Open
WhyNotHugo wants to merge 1 commit into
theironrobin:mainfrom
WhyNotHugo:raw-string
Open

Mark string as raw string#135
WhyNotHugo wants to merge 1 commit into
theironrobin:mainfrom
WhyNotHugo:raw-string

Conversation

@WhyNotHugo

Copy link
Copy Markdown

Python warns of an invalid escape sequence:

/usr/share/siglo/siglo/unpacker.py:34: SyntaxWarning: invalid escape sequence '\.'
  datfilename = [m.group(0) for f in files for m in [re.search('.*\.dat', f)] if m].pop()
/usr/share/siglo/siglo/unpacker.py:35: SyntaxWarning: invalid escape sequence '\.'
  binfilename = [m.group(0) for f in files for m in [re.search('.*\.bin', f)] if m].pop()

Mark this string as a raw string, which it is, to remove this warning.

Python warns of an invalid escape sequence:

    /usr/share/siglo/siglo/unpacker.py:34: SyntaxWarning: invalid escape sequence '\.'
      datfilename = [m.group(0) for f in files for m in [re.search('.*\.dat', f)] if m].pop()
    /usr/share/siglo/siglo/unpacker.py:35: SyntaxWarning: invalid escape sequence '\.'
      binfilename = [m.group(0) for f in files for m in [re.search('.*\.bin', f)] if m].pop()

Mark this string as a raw string, which it is, to remove this warning.
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