Skip to content

Commit

Permalink
Format Python.
Browse files Browse the repository at this point in the history
Signed-off-by: Dusty DeWeese <[email protected]>
  • Loading branch information
HackerFoo committed Dec 16, 2020
1 parent 261aee8 commit a614d19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion fasm/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ class MergeModel(object):
merging.
"""

class State(enum.Enum):
""" State of grouper. """
NoGroup = 1
Expand Down
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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))
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a614d19

Please sign in to comment.