Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_translations.py: Fix invalid escape sequences #5617

Closed
wants to merge 1 commit into from

Conversation

meator
Copy link

@meator meator commented Sep 14, 2024

Invalid escape sequence \; is used in two places in the src/language/generate_translations.py file. This results in the following warnings appearing when someone tries to bytecompile Python (which is done automatically by some package managers):

./usr/lib/python3.12/site-packages/openshot_qt/language/generate_translations.py:2: SyntaxWarning: invalid escape sequence '\;'
  """
./usr/lib/python3.12/site-packages/openshot_qt/language/generate_translations.py:106: SyntaxWarning: invalid escape sequence '\;'
  subprocess.call('find %s -iname "*.py" -exec xgettext -j -o %s --keyword=_ {} \;' % (

This PR fixes this problem with r"" string literals.

This warning appears only in newer versions of Python.

@meator
Copy link
Author

meator commented Sep 14, 2024

Oops, sorry for making a duplicate: #5592

@meator meator closed this Sep 14, 2024
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