diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2018-03-18 09:55:59 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-03-18 09:55:59 -0400 |
| commit | d92bc63ddd88729ad0bd892eacce29439b821fd2 (patch) | |
| tree | 4e217b2486e1fb2f468680b9d507dabe8fa162f9 /setuptools/dist.py | |
| parent | ad2d7e483ef5531962f6ca0c463704505afeb471 (diff) | |
| download | python-setuptools-git-d92bc63ddd88729ad0bd892eacce29439b821fd2.tar.gz | |
Delint
Diffstat (limited to 'setuptools/dist.py')
| -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 61cf5807..284d922d 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -36,6 +36,7 @@ def _get_unpatched(cls): warnings.warn("Do not call this function", DeprecationWarning) return get_unpatched(cls) + def get_metadata_version(dist_md): if dist_md.long_description_content_type or dist_md.provides_extras: return StrictVersion('2.1') @@ -76,7 +77,7 @@ def write_pkg_file(self, file): for field, attr in optional_fields: attr_val = getattr(self, attr) if six.PY2: - attr_val = self._encode_field(attr_val) + attr_val = self._encode_field(attr_val) if attr_val is not None: file.write('%s: %s\n' % (field, attr_val)) @@ -562,7 +563,7 @@ class Distribution(Distribution_parse_config_files, _Distribution): # don't use any other settings 'find_links', 'site_dirs', 'index_url', 'optimize', 'site_dirs', 'allow_hosts', - )) + )) if self.dependency_links: links = self.dependency_links[:] if 'find_links' in opts: |
