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

Fix makeprops.py syntax warning #2075

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

externl
Copy link
Member

@externl externl commented Apr 26, 2024

Closes #2074

@externl externl requested a review from pepone April 26, 2024 15:41
@@ -582,19 +582,19 @@ def fix(self, propertyName):

def deprecatedImpl(self, propertyName):
self.srcFile.write(
' new Property(@"^%s\.%s$", true, null),\n'
r' new Property(@"^%s\.%s$", true, null),\n'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this correctly, these are escape sequences for the regexp, in a python string it should be \\. or use the r"" format which doesn't use escape sequences. Is that correct?

Copy link
Member Author

@externl externl Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, other similar fixes in the past used the r"" format.

@externl externl merged commit 5b2ca41 into zeroc-ice:main Apr 26, 2024
16 checks passed
@externl externl deleted the 2074-invalid-escape-sequence branch April 26, 2024 16:07
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.

makeprops.py warnings
2 participants