Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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 Dobhal | 2021-03-22 | 1 | -1/+1 |
| | | | | | - Merge 'isinstance' calls. - Remove unnecessary dict call outside of comprehension. - Use 'sys.exit()' calls. | ||||
* | Remove frozendict_json_encoder and support frozendicts everywhere | Richard van der Hoff | 2020-10-28 | 1 | -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 Cloke | 2020-09-08 | 1 | -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 Vo | 2020-08-07 | 1 | -2/+5 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -4/+2 |
| | |||||
* | Strictly enforce canonicaljson requirements in a new room version (#7381) | Patrick Cloke | 2020-05-14 | 1 | -1/+1 |
| | |||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -1/+1 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -5/+4 |
| | |||||
* | Python 3: Convert some unicode/bytes uses (#3569) | Amber Brown | 2018-08-02 | 1 | -3/+3 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -3/+3 |
| | |||||
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -1/+1 |
| | |||||
* | pep8 | Adrian Tschira | 2018-05-29 | 1 | -0/+1 |
| | |||||
* | fix recursion error | Adrian Tschira | 2018-05-24 | 1 | -7/+5 |
| | |||||
* | remaining isintance fixes | Adrian Tschira | 2018-05-24 | 1 | -2/+3 |
| | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Use static JSONEncoders | Richard van der Hoff | 2018-03-29 | 1 | -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. | ||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵ | Erik Johnston | 2015-02-11 | 1 | -2/+6 |
| | | | | JSONEncoder that understands FrozenDict | ||||
* | Optimize FrozenEvent creation | Erik Johnston | 2015-01-06 | 1 | -2/+3 |
| | |||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Fix pyflakes | Erik Johnston | 2014-12-16 | 1 | -2/+0 |
| | |||||
* | Remove FrozenEncoder | Erik Johnston | 2014-12-16 | 1 | -8/+0 |
| | |||||
* | Add PEP8 newlines | Erik Johnston | 2014-12-09 | 1 | -1/+1 |
| | |||||
* | Add forgotten file | Erik Johnston | 2014-12-08 | 1 | -0/+56 |