Skip to content

Use raw string in filesender.py to silence escapement warning#2515

Closed
yent wants to merge 1 commit intofilesender:masterfrom
yent:master
Closed

Use raw string in filesender.py to silence escapement warning#2515
yent wants to merge 1 commit intofilesender:masterfrom
yent:master

Conversation

@yent
Copy link
Copy Markdown
Contributor

@yent yent commented Jan 14, 2026

Filesender.py was throwing out the following escapement warning :

SyntaxWarning: invalid escape sequence '\s' if username is None or not bool(re.match("([^@|\s]+@[^@]+\.[^@|\s]+)", username)):

Using a raw string instead of a double-quoted one fixes the issue.

Filesender.py was throwing out the following escapement warning :

`SyntaxWarning: invalid escape sequence '\s'
  if username is None or not bool(re.match("([^@|\s]+@[^@]+\.[^@|\s]+)", username)):`

Using a raw string instead of a double-quoted one fixes the issue.
@yent yent closed this Jan 14, 2026
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