Skip to content

Fix build warnings on invalid escape sequence#59

Open
JoelPasvolsky wants to merge 2 commits intodwavesystems:mainfrom
JoelPasvolsky:build_warnings
Open

Fix build warnings on invalid escape sequence#59
JoelPasvolsky wants to merge 2 commits intodwavesystems:mainfrom
JoelPasvolsky:build_warnings

Conversation

@JoelPasvolsky
Copy link
Contributor

The current patterns' strings' definitions

else:
                pattern = "\%Qubit\* inttoptr \(i64 (\d+) to \%Qubit\*\)"
                qubit = re.search(pattern, str(arg)).groups()[0]

cause SDK build warnings in newer Python versions:

<unknown>:176: SyntaxWarning: invalid escape sequence '\%'
<unknown>:184: SyntaxWarning: invalid escape sequence '\%'

I tested only by running your unit test so you might want to test more.

Also updated sphinx requirements to match current SDK.

Copy link
Collaborator

@thisac thisac left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants