Merge pull request #4795 from ramatevish/update-attr-kwarg

Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated.
This commit is contained in:
Bruno Oliveira 2019-02-14 08:37:34 -02:00 committed by GitHub
commit 0b6960446e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class TempPathFactory(object):
# using os.path.abspath() to get absolute path instead of resolve() as it
# does not work the same in all platforms (see #4427)
# Path.absolute() exists, but it is not public (see https://bugs.python.org/issue25012)
convert=attr.converters.optional(
converter=attr.converters.optional(
lambda p: Path(os.path.abspath(six.text_type(p)))
)
)