Revert "settings: Silence CryptographyDeprecationWarning spam from a dependency."

The warning was fixed in python-jose 3.3.0, which we pulled in with
commit 61e1e38a00 (#18705).

This reverts commit 1df725e6f1 (#18567).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-11-28 19:29:56 -08:00 committed by Tim Abbott
parent 8c1a6f4bba
commit d3dab39b87
1 changed files with 0 additions and 7 deletions

View File

@ -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: