diff options
author | Alan Fregtman <941331+darkvertex@users.noreply.github.com> | 2021-07-22 02:07:56 -0400 |
---|---|---|
committer | Alan Fregtman <941331+darkvertex@users.noreply.github.com> | 2021-07-22 02:07:56 -0400 |
commit | 9bba4bc6e4dfbbe2b4d454ac6521ebe3d3c45fb1 (patch) | |
tree | 0ff73ae97e86201cd12a3b05e82808acad782fdc /setuptools/config.py | |
parent | f094b7767b35e23f8e81f2f54c67cac9043e66be (diff) | |
download | python-setuptools-git-9bba4bc6e4dfbbe2b4d454ac6521ebe3d3c45fb1.tar.gz |
Satisfy some flake8 style checks for the previous commit.
Diffstat (limited to 'setuptools/config.py')
-rw-r--r-- | setuptools/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/config.py b/setuptools/config.py index 5deece38..a25b0580 100644 --- a/setuptools/config.py +++ b/setuptools/config.py @@ -267,7 +267,6 @@ class ConfigHandler: :rtype: list """ glob_characters = ('*', '?', '[', ']', '{', '}') - get_relpath = lambda value: os.path.relpath(value, os.getcwd()) values = cls._parse_list(value, separator=separator) expanded_values = [] for value in values: @@ -276,7 +275,8 @@ class ConfigHandler: if any(char in value for char in glob_characters): # then expand the glob pattern while keeping paths *relative*: expanded_values.extend(sorted( - get_relpath(path) for path in iglob(os.path.abspath(value)))) + os.path.relpath(path, os.getcwd()) + for path in iglob(os.path.abspath(value)))) else: # take the value as-is: |