aboutsummaryrefslogtreecommitdiffstats
path: root/dwasm.py
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-14 19:22:31 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-14 19:22:31 +0000
commitbddd10b1dab1cb88905489f93a77b5a8c465650b (patch)
treed33e31e4da2b4da846969c4ab21fe45712cdf853 /dwasm.py
parentlistened to lgtm... (diff)
downloaddwasm-bddd10b1dab1cb88905489f93a77b5a8c465650b.tar.gz
dwasm-bddd10b1dab1cb88905489f93a77b5a8c465650b.zip
just style fixesHEADmaster
Diffstat (limited to 'dwasm.py')
-rwxr-xr-xdwasm.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/dwasm.py b/dwasm.py
index ce5646f..8a1b0ab 100755
--- a/dwasm.py
+++ b/dwasm.py
@@ -3,12 +3,14 @@
import code
import signal
import sys
-from parse import Argparser, premain, SigHandler_SIGINT,PythonInterpreter
+from parse import Argparser, premain, SigHandler_SIGINT, PythonInterpreter
+
def getWASMModule():
module_path = sys.argv[1]
interpreter = PythonInterpreter()
- #module = interpreter.parse(module_path)
+ # module = interpreter.parse(module_path)
+
def main():
signal.signal(signal.SIGINT, SigHandler_SIGINT)
@@ -18,7 +20,8 @@ def main():
premain(argparser)
except Exception as e:
print(e.__doc__)
- if e.message: print(e.message)
+ if e.message:
+ print(e.message)
variables = globals().copy()
variables.update(locals())
shell = code.InteractiveConsole(variables)
@@ -26,5 +29,6 @@ def main():
else:
premain(argparser)
+
if __name__ == "__main__":
main()