summary refs log tree commit diff
path: root/UPGRADE.rst
diff options
context:
space:
mode:
authorOleg Girko <ol@infoserver.lv>2018-07-10 00:11:39 +0100
committerOleg Girko <ol@infoserver.lv>2018-07-10 00:38:49 +0100
commit6c1ec5a1bdfaed2d13a501fd2441d99c73711adb (patch)
tree57753ab1cfe2c38cb4310cfd698f107bf997c777 /UPGRADE.rst
parentMerge pull request #3464 from matrix-org/hawkowl/isort-run (diff)
downloadsynapse-6c1ec5a1bdfaed2d13a501fd2441d99c73711adb.tar.xz
Use more portable syntax using attrs package.
Newer syntax

    attr.ib(factory=dict)

is just a syntactic sugar for

    attr.ib(default=attr.Factory(dict))

It was introduced in newest version of attrs package (18.1.0)
and doesn't work with older versions.

We should either require minimum version of attrs to be 18.1.0,
or use older (slightly more verbose) syntax.
Requiring newest version is not a good solution because
Linux distributions may have older version of attrs (17.4.0 in Fedora 28),
and requiring to build (and package)
newer version just to use newer syntactic sugar in only one test
is just too much.
It's much better to fix that test to use older syntax.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
Diffstat (limited to 'UPGRADE.rst')
0 files changed, 0 insertions, 0 deletions