Skip to content

Avoid invalid Python escape warnings#126

Draft
Mirochill wants to merge 1 commit into
MarketSquare:masterfrom
Mirochill:fix-125-invalid-python-escapes
Draft

Avoid invalid Python escape warnings#126
Mirochill wants to merge 1 commit into
MarketSquare:masterfrom
Mirochill:fix-125-invalid-python-escapes

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • use raw strings for escaped Robot Framework variable names in RemoteSwingLibrary.py
  • escape backslashes before writing SwingLibrary documentation into generated Python string literals

Fixes #125.

Validation

  • Not run locally
  • rg -n "set_global_variable" src/main/python/RemoteSwingLibrary.py
  • rg -n "docs = docs.replace" src/main/java/org/robotframework/remoteswinglibrary/build/SwingLibraryKeywords.java
  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD

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.

RemoteSwingLibrary.py and swinglibrary.py SyntaxWarning: invalid escape sequence - Python 3.12.6

1 participant