From 4d03e7d09641c5435169675fb92b4277f5e66f4a Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 20 May 2017 00:31:26 +0200 Subject: [PATCH] Use pendulum instead of plain datetime because it is more intuitive to use and doesn't require the tz_aware_datetime-workaround. --- tsstats/log.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tsstats/log.py b/tsstats/log.py index 1a4ff80..535943c 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -4,13 +4,13 @@ import logging import re from codecs import open from collections import namedtuple -from datetime import datetime from glob import glob from os.path import basename from time import time +import pendulum + from tsstats.client import Client, Clients -from tsstats.utils import tz_aware_datime re_log_filename = re.compile(r'ts3server_(?P\d{4}-\d\d-\d\d)' '__(?P