From c9e38631d10e903cec2b71c80cd64c98381c0a93 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Thu, 2 May 2024 17:00:12 +0200 Subject: [PATCH] Flake8 formatting --- osaca/parser/immediate.py | 4 ++-- osaca/parser/parser_AArch64.py | 1 - osaca/parser/parser_x86att.py | 2 -- osaca/semantics/hw_model.py | 1 - osaca/semantics/kernel_dg.py | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/osaca/parser/immediate.py b/osaca/parser/immediate.py index 742819c..afda34c 100644 --- a/osaca/parser/immediate.py +++ b/osaca/parser/immediate.py @@ -36,8 +36,8 @@ def shift(self): return self._imd_type @imd_type.setter - def imd_type(self, type): - self._imd_type = imd_type + def imd_type(self, itype): + self._imd_type = itype @identifier.setter def identifier(self, identifier): diff --git a/osaca/parser/parser_AArch64.py b/osaca/parser/parser_AArch64.py index e858732..62ec851 100644 --- a/osaca/parser/parser_AArch64.py +++ b/osaca/parser/parser_AArch64.py @@ -12,7 +12,6 @@ from osaca.parser.identifier import IdentifierOperand from osaca.parser.immediate import ImmediateOperand from osaca.parser.condition import ConditionOperand -from osaca.parser.flag import FlagOperand from osaca.parser.prefetch import PrefetchOperand diff --git a/osaca/parser/parser_x86att.py b/osaca/parser/parser_x86att.py index b02d5bf..c6d67b8 100644 --- a/osaca/parser/parser_x86att.py +++ b/osaca/parser/parser_x86att.py @@ -7,14 +7,12 @@ from osaca.parser import BaseParser from osaca.parser.instruction_form import InstructionForm -from osaca.parser.operand import Operand from osaca.parser.directive import DirectiveOperand from osaca.parser.memory import MemoryOperand from osaca.parser.label import LabelOperand from osaca.parser.register import RegisterOperand from osaca.parser.identifier import IdentifierOperand from osaca.parser.immediate import ImmediateOperand -from osaca.parser.flag import FlagOperand class ParserX86ATT(BaseParser): diff --git a/osaca/semantics/hw_model.py b/osaca/semantics/hw_model.py index 7d0173d..404f894 100644 --- a/osaca/semantics/hw_model.py +++ b/osaca/semantics/hw_model.py @@ -11,7 +11,6 @@ import ruamel.yaml from osaca import __version__, utils -from copy import deepcopy from osaca.parser import ParserX86ATT from osaca.parser.instruction_form import InstructionForm from osaca.parser.operand import Operand diff --git a/osaca/semantics/kernel_dg.py b/osaca/semantics/kernel_dg.py index a061749..c9d64a5 100644 --- a/osaca/semantics/kernel_dg.py +++ b/osaca/semantics/kernel_dg.py @@ -12,7 +12,6 @@ from osaca.parser.memory import MemoryOperand from osaca.parser.register import RegisterOperand from osaca.parser.immediate import ImmediateOperand -from osaca.parser.operand import Operand from osaca.parser.flag import FlagOperand