Skip to content

Fix Python escape character warning - #150

Open
maciejopalinski wants to merge 1 commit into
Peter-van-Tol:mainfrom
maciejopalinski:python-regex-warning
Open

Fix Python escape character warning#150
maciejopalinski wants to merge 1 commit into
Peter-van-Tol:mainfrom
maciejopalinski:python-regex-warning

Conversation

@maciejopalinski

Copy link
Copy Markdown
/home/matthew/Projects/LiteX-CNC/src/litexcnc/cli/install_driver.py:137: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  if re.search("litexcnc_.*\.c", file.name):
/home/matthew/Projects/LiteX-CNC/src/litexcnc/cli/install_driver.py:149: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
  if re.search("litexcnc_.*\.c", file.name):

this PR fixes the above warning by using raw string

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