Skip to content

Fix escape character warning in migration - #7991

Merged
gerrod3 merged 1 commit into
pulp:mainfrom
gerrod3:rmd
Aug 19, 2026
Merged

Fix escape character warning in migration#7991
gerrod3 merged 1 commit into
pulp:mainfrom
gerrod3:rmd

Conversation

@gerrod3

@gerrod3 gerrod3 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor
/src/pulpcore/pulpcore/app/migrations/0155_create_rel_path_domains.py:7: SyntaxWarning: invalid escape sequence '\s'
  CREATE DOMAIN "relative_path" AS text CHECK ('/' || VALUE || '/' !~ '[\n\r\s\t\?#]|(/\.{0,2}/)');

Set the SQL string to raw to avoid warning when file is loaded.

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

@gerrod3
gerrod3 enabled auto-merge (rebase) August 18, 2026 15:15
@gerrod3
gerrod3 merged commit 107800e into pulp:main Aug 19, 2026
33 of 40 checks passed
@gerrod3
gerrod3 deleted the rmd branch August 19, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants