Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated

This commit is contained in:
R. Alex Matevish 2019-02-14 00:03:41 -08:00
parent c84ae0bb7a
commit 40cec637d7
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)))
)
)