diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-01 21:14:20 +0100 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-01 21:14:20 +0100 |
| commit | 11b6828342b5f34bc593d49b0b13dc23a2eb7a2d (patch) | |
| tree | f0cded140fb272ec5cbe3a104c47196ccbbbe5b4 | |
| parent | 40232ffa1983be8149a68cb969f28b92200204b6 (diff) | |
| download | python-setuptools-git-11b6828342b5f34bc593d49b0b13dc23a2eb7a2d.tar.gz | |
Use a variable for less busy syntax
| -rw-r--r-- | setuptools/dist.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 69e04099..7713bf02 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -34,11 +34,12 @@ _Distribution = _get_unpatched(_Distribution) def _patch_distribution_metadata_write_pkg_info(): """ - Workaround issue #197 - Python [3.0 - 3.2.2> uses an environment-local + Workaround issue #197 - Python 3 prior to 3.2.2 uses an environment-local encoding to save the pkg_info. Monkey-patch its write_pkg_info method to correct this undesirable behavior. """ - if not ((3,) <= sys.version_info[:3] < (3, 2, 2)): + environment_local = (3,) <= sys.version_info[:3] < (3, 2, 2) + if not environment_local: return # from Python 3.4 |
