summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-07-11 04:22:46 +1000
committerGitHub <noreply@github.com>2018-07-11 04:22:46 +1000
commit129ffd7b88ddedc9ca67129801e34b37b38221d2 (patch)
tree0d2a1268a3c5394b02fcc1f95aced0e1d746b30b /synapse/storage
parents/becuase/because/g (diff)
parentchangelog entry (diff)
downloadsynapse-129ffd7b88ddedc9ca67129801e34b37b38221d2.tar.xz
Merge pull request #3498 from OlegGirko/fix_attrs_syntax
* 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 'synapse/storage')
0 files changed, 0 insertions, 0 deletions