Commit fc59fe8e authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Using generator comprehension, avoid casting filepath to bytes on Python 2

parent 5da6479d
......@@ -260,11 +260,8 @@ class ConfigHandler(object):
if not value.startswith(include_directive):
return value
filepaths = value[len(include_directive):]
filepaths = filepaths.split(',')
filepaths = map(str, filepaths) # Needed for Python 2
filepaths = map(str.strip, filepaths)
filepaths = map(os.path.abspath, filepaths)
spec = value[len(include_directive):]
filepaths = (os.path.abspath(path.strip()) for path in spec.split(','))
current_directory = os.getcwd()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment