Skip to content

Commit 9b372a3

Browse files
chore: update import for python-json-logger (ietf-tools#8330)
The "jsonlogger" module became "json" in 3.1.0
1 parent 6b77807 commit 9b372a3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/utils/jsonlogger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Copyright The IETF Trust 2024, All Rights Reserved
2-
from pythonjsonlogger import jsonlogger
2+
from pythonjsonlogger.json import JsonFormatter
33
import time
44

55

6-
class DatatrackerJsonFormatter(jsonlogger.JsonFormatter):
6+
class DatatrackerJsonFormatter(JsonFormatter):
77
converter = time.gmtime # use UTC
88
default_msec_format = "%s.%03d" # '.' instead of ','
99

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pyopenssl>=22.0.0 # Used by urllib3.contrib, which is used by PyQuery but not
5959
pyquery>=1.4.3
6060
python-dateutil>=2.8.2
6161
types-python-dateutil>=2.8.2
62-
python-json-logger>=2.0.7
62+
python-json-logger>=3.1.0
6363
python-magic==0.4.18 # Versions beyond the yanked .19 and .20 introduce form failures
6464
pymemcache>=4.0.0 # for django.core.cache.backends.memcached.PyMemcacheCache
6565
python-mimeparse>=1.6 # from TastyPie

0 commit comments

Comments
 (0)