With attrs 17.4.0, "convert" is deprecated in favor of "converter" · Issue #39 · aws/aws-encryption-sdk-python (original) (raw)

Problem

The attr.ib(convert=callable) option is now deprecated in favor of attr.ib(converter=callable).

This is done to achieve consistency with other noun-based arguments like validator.

convert will keep working until at least January 2019 while raising a DeprecationWarning.

https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst#deprecations

Reported on the AWS forums: https://forums.aws.amazon.com/thread.jspa?threadID=271087

Solution

We'll need to rename each use of "convert" to "converter" and bump requirements to attrs >= 17.4.0.