mirror of https://github.com/zulip/zulip.git
Revert "settings: Silence CryptographyDeprecationWarning spam from a dependency."
The warning was fixed in python-jose 3.3.0, which we pulled in with commit61e1e38a00
(#18705). This reverts commit1df725e6f1
(#18567). Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
8c1a6f4bba
commit
d3dab39b87
|
@ -1,12 +1,10 @@
|
|||
import os
|
||||
import sys
|
||||
import time
|
||||
import warnings
|
||||
from copy import deepcopy
|
||||
from typing import Any, Dict, List, Tuple, Union
|
||||
from urllib.parse import urljoin
|
||||
|
||||
from cryptography.utils import CryptographyDeprecationWarning
|
||||
from django.template.loaders import app_directories
|
||||
|
||||
import zerver.lib.logging_util
|
||||
|
@ -1008,11 +1006,6 @@ LOGGING: Dict[str, Any] = {
|
|||
},
|
||||
}
|
||||
|
||||
# Silence CryptographyDeprecationWarning spam from a dependency:
|
||||
# /srv/zulip-py3-venv/lib/python3.6/site-packages/jose/backends/cryptography_backend.py:18: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
|
||||
# TODO: Clean this up when possible after future dependency upgrades.
|
||||
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning, module="jose.*")
|
||||
|
||||
if DEVELOPMENT:
|
||||
CONTRIBUTOR_DATA_FILE_PATH = os.path.join(DEPLOY_ROOT, "var/github-contributors.json")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue