Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorgd3dab39b870f
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index 0e7beb85d7a..e5cba89d2ed 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -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: