vendor: python3 fixes
This commit is contained in:
parent
87dc66d2db
commit
6db5a493b6
2 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,6 @@ This library is provided to allow standard python logging
|
|||
to output log data as JSON formatted strings
|
||||
'''
|
||||
import logging
|
||||
import json
|
||||
import re
|
||||
from datetime import date, datetime, time, tzinfo, timedelta
|
||||
import traceback
|
||||
|
|
@ -13,6 +12,8 @@ from inspect import istraceback
|
|||
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.logging_formatter import _inject_req_id, ExceptionAwareFormatter
|
||||
from rhodecode.lib.ext_json import sjson as json
|
||||
|
||||
|
||||
ZERO = timedelta(0)
|
||||
HOUR = timedelta(hours=1)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ log = logging.getLogger('rhodecode.statsd')
|
|||
|
||||
def statsd_config(config, prefix='statsd.'):
|
||||
_config = {}
|
||||
for key in config.keys():
|
||||
for key in list(config.keys()):
|
||||
if key.startswith(prefix):
|
||||
_config[key[len(prefix):]] = config[key]
|
||||
return _config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue