Skip to content

Commit

Permalink
fix pypa#1419 PEP420: fix typo in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Aug 14, 2018
1 parent ecdd4cf commit 0ae898a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setuptools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,25 +519,25 @@ def _parse_packages(self, value):
trimmed_value = value.strip()

if not trimmed_value in find_directives:
return self._parse_list(value)
return self._parse_list(value)

findns = trimmed_value == find_directives[1]
if findns and not PY3:
raise DistutilsOptionError('find_namespace: directive is unsupported on Python < 3.3')
raise DistutilsOptionError('find_namespace: directive is unsupported on Python < 3.3')

# Read function arguments from a dedicated section.
find_kwargs = self.parse_section_packages__find(
self.sections.get('packages.find', {}))

if findns:
from setuptools import find_packages_ns as find_packages
from setuptools import find_packages_ns as find_packages
else:
from setuptools import find_packages
from setuptools import find_packages

return find_packages(**find_kwargs)

def parse_section_packages__find(self, section_options):
"""Parses `packages.find[ns]` configuration file section.
"""Parses `packages.find` configuration file section.
To be used in conjunction with _parse_packages().
Expand Down

0 comments on commit 0ae898a

Please sign in to comment.