# HG changeset patch # User RhodeCode Admin # Date 2023-03-06 22:27:06 # Node ID 310a1c9d3469a685e4b61f72d5062d97665e5f18 # Parent 54a3e43ecad9c5d3266a7583fc6615d01a46e921 gunicorn: fixed config syntax diff --git a/configs/gunicorn_config.py b/configs/gunicorn_config.py --- a/configs/gunicorn_config.py +++ b/configs/gunicorn_config.py @@ -57,12 +57,9 @@ def _get_process_rss(pid=None): def _get_config(ini_path): + import configparser try: - import configparser - except ImportError: - import ConfigParser as configparser - try: config = configparser.RawConfigParser() config.read(ini_path) return config @@ -336,7 +333,7 @@ class RhodeCodeLogger(Logger): def now(self): """ return date in RhodeCode Log format """ now = time.time() - msecs = int((now - long(now)) * 1000) + msecs = int((now - int(now)) * 1000) return time.strftime(self.datefmt, time.localtime(now)) + '.{0:03d}'.format(msecs) def atoms(self, resp, req, environ, request_time):