xinjli / allosaurus

Allosaurus is a pretrained universal phone recognizer for more than 2000 languages
GNU General Public License v3.0
571 stars 88 forks source link

preprocess.py literal comparison using equals #80

Open peterroelants opened 7 months ago

peterroelants commented 7 months ago

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':