summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-08-20 04:37:32 +0700
committerstepshal <nessento@openmailbox.org>2016-08-20 04:37:32 +0700
commit08511f5fdfe04a8ea6e3ae73e086e8a29a0a5cd1 (patch)
treebf8c8b397156f7fc81b09b43fbbe7435280a75a2 /setuptools
parentc296634d44de4a9715d09e4773b73b2d233fbbc4 (diff)
downloadpython-setuptools-git-08511f5fdfe04a8ea6e3ae73e086e8a29a0a5cd1.tar.gz
Fix quantity of blank lines after code object, class of function definition.
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/command/build_ext.py2
-rw-r--r--setuptools/tests/test_build_ext.py1
-rw-r--r--setuptools/tests/test_manifest.py1
3 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index 9caabfd5..f994b626 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -59,6 +59,7 @@ elif os.name != 'nt':
if_dl = lambda s: s if have_rtld else ''
+
def get_abi3_suffix():
"""Return the file extension for an abi3-compliant Extension()"""
for suffix, _, _ in (s for s in imp.get_suffixes() if s[2] == imp.C_EXTENSION):
@@ -67,6 +68,7 @@ def get_abi3_suffix():
elif suffix == '.pyd': # Windows
return suffix
+
class build_ext(_build_ext):
def run(self):
diff --git a/setuptools/tests/test_build_ext.py b/setuptools/tests/test_build_ext.py
index 0edc92ec..ac002f44 100644
--- a/setuptools/tests/test_build_ext.py
+++ b/setuptools/tests/test_build_ext.py
@@ -8,6 +8,7 @@ from setuptools.command.build_ext import build_ext, get_abi3_suffix
from setuptools.dist import Distribution
from setuptools.extension import Extension
+
class TestBuildExt:
def test_get_ext_filename(self):
diff --git a/setuptools/tests/test_manifest.py b/setuptools/tests/test_manifest.py
index 6e67ca61..6360270d 100644
--- a/setuptools/tests/test_manifest.py
+++ b/setuptools/tests/test_manifest.py
@@ -51,6 +51,7 @@ def quiet():
def touch(filename):
open(filename, 'w').close()
+
# The set of files always in the manifest, including all files in the
# .egg-info directory
default_files = frozenset(map(make_local_path, [