From 1df3083cb4513ba7fda34f3244b843454d247d26 Mon Sep 17 00:00:00 2001 From: Moshe Schorr Date: Wed, 18 Mar 2020 16:39:44 +0200 Subject: [PATCH] formatting tweaks --- arm2riscv.py | 5 +---- utils.py | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arm2riscv.py b/arm2riscv.py index fe0c45c..527c38d 100644 --- a/arm2riscv.py +++ b/arm2riscv.py @@ -46,10 +46,7 @@ buffer = [] ops = set() -grammar_file = os.path.join( - os.path.dirname(__file__), - 'grammar/grammar_arm.lark' -) +grammar_file = os.path.join(os.path.dirname(__file__), 'grammar/grammar_arm.lark') with open(grammar_file) as f: grammar = f.read() diff --git a/utils.py b/utils.py index bf9460e..f7338ee 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 class InstructionNotRecognized(Exception): + ''' Exception to throw when an instruction does not have defined conversion code ''' pass