aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/launch.py6
-rw-r--r--setuptools/lib2to3_ex.py2
-rwxr-xr-xsetuptools/package_index.py6
-rw-r--r--setuptools/tests/__init__.py12
4 files changed, 13 insertions, 13 deletions
diff --git a/setuptools/launch.py b/setuptools/launch.py
index b05cbd2c..308283ea 100644
--- a/setuptools/launch.py
+++ b/setuptools/launch.py
@@ -18,9 +18,9 @@ def run():
__builtins__
script_name = sys.argv[1]
namespace = dict(
- __file__ = script_name,
- __name__ = '__main__',
- __doc__ = None,
+ __file__=script_name,
+ __name__='__main__',
+ __doc__=None,
)
sys.argv[:] = sys.argv[1:]
diff --git a/setuptools/lib2to3_ex.py b/setuptools/lib2to3_ex.py
index f7296786..308086bc 100644
--- a/setuptools/lib2to3_ex.py
+++ b/setuptools/lib2to3_ex.py
@@ -27,7 +27,7 @@ class DistutilsRefactoringTool(RefactoringTool):
class Mixin2to3(_Mixin2to3):
- def run_2to3(self, files, doctests = False):
+ def run_2to3(self, files, doctests=False):
# See of the distribution option has been set, otherwise check the
# setuptools default.
if self.distribution.use_2to3 is not True:
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index cdedef83..45ea49ad 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -94,7 +94,7 @@ def distros_for_url(url, metadata=None):
match = EGG_FRAGMENT.match(fragment)
if match:
for dist in interpret_distro_name(
- url, match.group(1), metadata, precedence = CHECKOUT_DIST
+ url, match.group(1), metadata, precedence=CHECKOUT_DIST
):
yield dist
@@ -158,8 +158,8 @@ def interpret_distro_name(
for p in range(1, len(parts)+1):
yield Distribution(
location, metadata, '-'.join(parts[:p]), '-'.join(parts[p:]),
- py_version=py_version, precedence = precedence,
- platform = platform
+ py_version=py_version, precedence=precedence,
+ platform=platform
)
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py
index 91519682..c059b178 100644
--- a/setuptools/tests/__init__.py
+++ b/setuptools/tests/__init__.py
@@ -131,8 +131,8 @@ class TestDistro:
self.dist = makeSetup(
packages=['a', 'a.b', 'a.b.c', 'b', 'c'],
py_modules=['b.d', 'x'],
- ext_modules = (self.e1, self.e2),
- package_dir = {},
+ ext_modules=(self.e1, self.e2),
+ package_dir={},
)
def testDistroType(self):
@@ -225,15 +225,15 @@ class TestFeatures:
),
'baz': Feature(
"baz", optional=False, packages=['pkg.baz'],
- scripts = ['scripts/baz_it'],
+ scripts=['scripts/baz_it'],
libraries=[('libfoo', 'foo/foofoo.c')]
),
'dwim': Feature("DWIM", available=False, remove='bazish'),
},
script_args=['--without-bar', 'install'],
- packages = ['pkg.bar', 'pkg.foo'],
- py_modules = ['bar_et', 'bazish'],
- ext_modules = [Extension('bar.ext', ['bar.c'])]
+ packages=['pkg.bar', 'pkg.foo'],
+ py_modules=['bar_et', 'bazish'],
+ ext_modules=[Extension('bar.ext', ['bar.c'])]
)
def testDefaults(self):