From 9b372a31b4c70a031bb20a1cb2ee8189551d01ce Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 12 Dec 2024 13:40:49 -0400 Subject: [PATCH] chore: update import for python-json-logger (#8330) The "jsonlogger" module became "json" in 3.1.0 --- ietf/utils/jsonlogger.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ietf/utils/jsonlogger.py b/ietf/utils/jsonlogger.py index 1fc453ad9..589132977 100644 --- a/ietf/utils/jsonlogger.py +++ b/ietf/utils/jsonlogger.py @@ -1,9 +1,9 @@ # Copyright The IETF Trust 2024, All Rights Reserved -from pythonjsonlogger import jsonlogger +from pythonjsonlogger.json import JsonFormatter import time -class DatatrackerJsonFormatter(jsonlogger.JsonFormatter): +class DatatrackerJsonFormatter(JsonFormatter): converter = time.gmtime # use UTC default_msec_format = "%s.%03d" # '.' instead of ',' diff --git a/requirements.txt b/requirements.txt index 66397091a..ec5fc60b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -59,7 +59,7 @@ pyopenssl>=22.0.0 # Used by urllib3.contrib, which is used by PyQuery but not pyquery>=1.4.3 python-dateutil>=2.8.2 types-python-dateutil>=2.8.2 -python-json-logger>=2.0.7 +python-json-logger>=3.1.0 python-magic==0.4.18 # Versions beyond the yanked .19 and .20 introduce form failures pymemcache>=4.0.0 # for django.core.cache.backends.memcached.PyMemcacheCache python-mimeparse>=1.6 # from TastyPie