Skip to content

Conversation

@glensc
Copy link

@glensc glensc commented May 3, 2024

  • \ s seemed like a typo, removed \
  • \ge seems like a wanted macro, so using r block

reproducer:

$ howdy_store_credentials
howdy/core/core.py:1006: SyntaxWarning: invalid escape sequence '\ '
  """
howdy/core/core.py:1366: SyntaxWarning: invalid escape sequence '\g'
  """
ERROR, NO TMDB API CREDENTIALS FOUND

- `\ s` seemed like a typo, removed `\`
- `\ge` seems like wanted macro, so using `r` block
@glensc
Copy link
Author

glensc commented May 3, 2024

oh there are more of these. i guess this could be automated

❯ howdy_tv_gui
howdy/tv/tv.py:1006: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv.py:1126: SyntaxWarning: invalid escape sequence '\d'
  if re.match('^s\d{1,}e\d{1,}', toks[idx].lower( ) ) is not None:
howdy/tv/tv.py:1295: SyntaxWarning: invalid escape sequence '\ '
  """
howdy/tv/tv.py:1710: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:32: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:171: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:262: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:367: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:455: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:629: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:719: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:962: SyntaxWarning: invalid escape sequence '\g'
  """
howdy/tv/tv_torrents.py:1021: SyntaxWarning: invalid escape sequence '\('
  torFileNameAlt = ' '.join( re.sub('\(([0-9]+)\)', '', torFileName ).strip( ).split( ) )

@glensc glensc marked this pull request as draft May 3, 2024 03:36
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