summary refs log tree commit diff
path: root/synapse/util/frozenutils.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add types to synapse.util. (#10601)reivilibre2021-09-101-2/+3
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Fixed code misc. quality issues (#9649)Ankit Dobhal2021-03-221-1/+1
| | | | | - Merge 'isinstance' calls. - Remove unnecessary dict call outside of comprehension. - Use 'sys.exit()' calls.
* Remove frozendict_json_encoder and support frozendicts everywhereRichard van der Hoff2020-10-281-22/+0
| | | | | | Not being able to serialise `frozendicts` is fragile, and it's annoying to have to think about which serialiser you want. There's no real downside to supporting frozendicts, so let's just have one json encoder.
* Directly import json from the standard library. (#8259)Patrick Cloke2020-09-081-2/+3
| | | | | By importing from canonicaljson the simplejson module was still being used in some situations. After this change the std lib json is consistenty used throughout Synapse.
* Reduce unnecessary whitespace in JSON. (#7372)David Vo2020-08-071-2/+5
|
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-4/+2
|
* Strictly enforce canonicaljson requirements in a new room version (#7381)Patrick Cloke2020-05-141-1/+1
|
* Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-211-1/+1
| | | | Ensure good comprehension hygiene using flake8-comprehensions.
* Run Black. (#5482)Amber Brown2019-06-201-5/+4
|
* Python 3: Convert some unicode/bytes uses (#3569)Amber Brown2018-08-021-3/+3
|
* run isortAmber Brown2018-07-091-3/+3
|
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+1
|
* pep8Adrian Tschira2018-05-291-0/+1
|
* fix recursion errorAdrian Tschira2018-05-241-7/+5
|
* remaining isintance fixesAdrian Tschira2018-05-241-2/+3
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Use static JSONEncodersRichard van der Hoff2018-03-291-0/+19
| | | | | using json.dumps with custom options requires us to create a new JSONEncoder on each call. It's more efficient to create one upfront and reuse it.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston2015-02-111-2/+6
| | | | JSONEncoder that understands FrozenDict
* Optimize FrozenEvent creationErik Johnston2015-01-061-2/+3
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Fix pyflakesErik Johnston2014-12-161-2/+0
|
* Remove FrozenEncoderErik Johnston2014-12-161-8/+0
|
* Add PEP8 newlinesErik Johnston2014-12-091-1/+1
|
* Add forgotten fileErik Johnston2014-12-081-0/+56