Skip to content

preprocess.py literal comparison using equals#80

Open
peterroelants wants to merge 1 commit intoxinjli:masterfrom
peterroelants:patch-1
Open

preprocess.py literal comparison using equals#80
peterroelants wants to merge 1 commit intoxinjli:masterfrom
peterroelants:patch-1

Conversation

@peterroelants
Copy link
Copy Markdown

String/Literal comparison should be done using == instead of is

Solves:

 /app/venv/lib/python3.10/site-packages/allosaurus/pm/preprocess.py:45: SyntaxWarning: "is" with a literal. Did you mean "=="?                                            
 #   if wintype is 'povey': 

String/Literal comparison should be done using `==` instead of `is`
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