diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:11:14 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-06-03 09:11:14 -0400 |
commit | ac3e41e61a72f34a46799f63531465495e3465a9 (patch) | |
tree | c7dc70653413495220b199974534370e879af16e /setuptools/wheel.py | |
parent | c2460c75c3e0aac25387c04d7601959d2b6a3449 (diff) | |
download | python-setuptools-git-ac3e41e61a72f34a46799f63531465495e3465a9.tar.gz |
Use the new breathing room to consolidate lines
Diffstat (limited to 'setuptools/wheel.py')
-rw-r--r-- | setuptools/wheel.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/setuptools/wheel.py b/setuptools/wheel.py index 3065f2a1..d7ce56bf 100644 --- a/setuptools/wheel.py +++ b/setuptools/wheel.py @@ -107,8 +107,7 @@ class Wheel(object): # Check wheel format version is supported. wheel_version = parse_version(wheel_metadata.get('Wheel-Version')) wheel_v1 = ( - parse_version('1.0') <= wheel_version - < parse_version('2.0dev0') + parse_version('1.0') <= wheel_version < parse_version('2.0dev0') ) if not wheel_v1: raise ValueError( @@ -120,7 +119,7 @@ class Wheel(object): dist_info = os.path.join(destination_eggdir, dist_info) dist = Distribution.from_location( destination_eggdir, dist_info, - metadata=PathMetadata(destination_eggdir, dist_info) + metadata=PathMetadata(destination_eggdir, dist_info), ) # Note: Evaluate and strip markers now, @@ -180,8 +179,6 @@ class Wheel(object): for mod in namespace_packages: mod_dir = os.path.join(destination_eggdir, *mod.split('.')) mod_init = os.path.join(mod_dir, '__init__.py') - if ( - os.path.exists(mod_dir) - and not os.path.exists(mod_init)): + if os.path.exists(mod_dir) and not os.path.exists(mod_init): with open(mod_init, 'w') as fp: fp.write(NAMESPACE_PACKAGE_INIT) |