Skip to content

Commit 83996eb

Browse files
committed
fix linting errors
1 parent 09b2784 commit 83996eb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Example/test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import os
1010
import sys
11-
import libmathcat_py as libmathcat # type: ignore
11+
import test_name as libmathcat # type: ignore
1212

1313
# import shutil
1414
# if os.path.exists("libmathcat_py.pyd"):
@@ -31,7 +31,7 @@ def setMathCATPreferences():
3131
libmathcat.SetPreference("SpeechStyle", "SimpleSpeak") # Also "ClearSpeak"
3232
libmathcat.SetPreference("Verbosity", "Verbose") # also terse "Terse"/"Medium"
3333
libmathcat.SetPreference("CapitalLetters_UseWord", "true") # if "true", X => "cap x"
34-
libmathcat.SetPreference("BrailleCode", "Nemeth");
34+
libmathcat.SetPreference("BrailleCode", "Nemeth")
3535
except Exception as e:
3636
sys.exit(f"problem with setting a preference: {e}")
3737

@@ -82,14 +82,12 @@ def test():
8282
if speech != 'x cubed':
8383
sys.exit(f"MathML: {mathml}\nSpeech: '{speech}'")
8484

85-
8685
mathml = "<math><msup intent='transpose:postfix($x)'> <mi arg='x'>x</mi> <mi>T</mi> </msup> </math>"
8786
setMathMLForMathCAT(mathml)
8887
speech = getSpeech()
8988
if speech != ', x transpose':
9089
sys.exit(f"MathML: {mathml}\nSpeech: '{speech}'")
9190

92-
9391
mathml = "<math><mrow intent='_(x, $op)'><mo arg='op'>!</mo></mrow></math>"
9492
setMathMLForMathCAT(mathml)
9593
speech = getSpeech()
@@ -107,4 +105,4 @@ def test():
107105

108106

109107
test()
110-
sys.exit(0)
108+
sys.exit(0)

0 commit comments

Comments
 (0)