zulip/zerver
Eeshan Garg 96036f07a3 api_code_example: Use json instead of ujson; specify separators.
The Markdown extension that lives inside
zerver/lib/bugdown/api_code_example.py previously used ujson.
ujson's `dumps` function doesn't accept a `separators` argument,
which means we have no control over how the JSON is pretty-printed.
This resulted in JSON fixtures with no spaces after the colon, which
looks unnecessarily convoluted.

So now, we use the built-in `json` module to get around this.

For further reading, this issue
<https://github.com/esnme/ultrajson/issues/82> opened on ujson's
repo explains why they are reluctant to support such formatting
due to performance considerations.
2018-02-20 20:10:38 -03:30
..
fixtures stripe: Add backend tests for stripe. 2018-02-12 12:45:46 -08:00
lib api_code_example: Use json instead of ujson; specify separators. 2018-02-20 20:10:38 -03:30
management translation: Mark error strings in django.po files. 2018-02-15 11:12:42 -08:00
migrations migrations: Fix mypy error in placeholder migration. 2018-02-05 18:03:07 -08:00
templatetags mypy: Tweak a bit of syntax to avoid a mypy bug. 2018-02-09 19:43:27 -08:00
tests test_signup: Remove accidentally merged print statements. 2018-02-19 11:46:39 -08:00
tornado mypy: Clarify valid types in tornado views via new variable. 2018-02-13 11:40:52 -08:00
views signup: Show subdomain availability during signup. 2018-02-19 10:45:17 -08:00
webhooks webhooks: Add Facebook integration. 2018-02-19 09:41:49 -08:00
worker embedded bots: Log warning when bot quit()s. 2018-02-13 14:56:37 -08:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py integrations/email: Render settings.EMAIL_GATEWAY_EXAMPLE correctly. 2018-01-22 18:05:20 -05:00
decorator.py decorators: Fix email check in access_user_by_api_key case insensitive. 2018-01-23 10:04:03 -08:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py subdomain: Check for invalid characters before length. 2018-02-19 10:45:17 -08:00
logging_handlers.py Fix mypy error in AdminNotifyHandler.emit(). 2017-12-22 15:02:18 -05:00
middleware.py mypy: Use Python 3 type syntax in zerver/middleware.py. 2017-12-11 18:43:24 -08:00
models.py mypy: Annotate upload_quota_gb as Optional. 2018-02-19 09:24:50 -08:00
signals.py emails: Fix notify_new_login emails have unserializable context. 2017-12-22 16:34:18 -05:00
static_header.txt
storage.py mypy: Improve typing for ManifestStaticFilesStorage monkeypatch. 2017-12-08 19:00:18 -08:00