From a614d191eedf16f9f60a1081bee48916a9fe9eb5 Mon Sep 17 00:00:00 2001 From: Dusty DeWeese Date: Tue, 15 Dec 2020 20:41:13 -0800 Subject: [PATCH] Format Python. Signed-off-by: Dusty DeWeese --- fasm/output.py | 1 - setup.py | 13 +++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fasm/output.py b/fasm/output.py index 30721c0b..49d62b7c 100644 --- a/fasm/output.py +++ b/fasm/output.py @@ -113,7 +113,6 @@ class MergeModel(object): merging. """ - class State(enum.Enum): """ State of grouper. """ NoGroup = 1 diff --git a/setup.py b/setup.py index 71dc88c9..c9473f56 100644 --- a/setup.py +++ b/setup.py @@ -36,8 +36,11 @@ def __init__(self, name, sourcedir='', prefix=''): class CMakeBuild(build_ext): user_options = [ - ('antlr-runtime=', None, "Whether to use a 'static' or 'shared' ANTLR runtime."), + ( + 'antlr-runtime=', None, + "Whether to use a 'static' or 'shared' ANTLR runtime."), ] + def copy_extensions_to_source(self): original_extensions = list(self.extensions) self.extensions = [ @@ -56,8 +59,8 @@ def run(self): except OSError: raise RuntimeError( "CMake must be installed to build " - "the following extensions: " + ", ".join( - e.name for e in self.extensions)) + "the following extensions: " + + ", ".join(e.name for e in self.extensions)) cmake_version = LooseVersion( re.search(r'version\s*([\d.]+)', out.decode()).group(1)) @@ -117,7 +120,9 @@ def initialize_options(self): def finalize_options(self): super().finalize_options() - assert self.antlr_runtime in ['static', 'shared'], 'Invalid antlr_runtime' + assert self.antlr_runtime in [ + 'static', 'shared' + ], 'Invalid antlr_runtime' setuptools.setup(