Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated
This commit is contained in:
parent
c84ae0bb7a
commit
40cec637d7
|
@ -31,7 +31,7 @@ class TempPathFactory(object):
|
||||||
# using os.path.abspath() to get absolute path instead of resolve() as it
|
# using os.path.abspath() to get absolute path instead of resolve() as it
|
||||||
# does not work the same in all platforms (see #4427)
|
# does not work the same in all platforms (see #4427)
|
||||||
# Path.absolute() exists, but it is not public (see https://bugs.python.org/issue25012)
|
# 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)))
|
lambda p: Path(os.path.abspath(six.text_type(p)))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue