From 888cf9670cc9b0f1d8398ef6229122aed6321da3 Mon Sep 17 00:00:00 2001 From: izzy84075 Date: Tue, 10 Feb 2015 15:19:20 -0800 Subject: [PATCH] Fix style. --- chanlogs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chanlogs.py b/chanlogs.py index 86d66b2440..0331cd3816 100644 --- a/chanlogs.py +++ b/chanlogs.py @@ -46,19 +46,21 @@ def configure(config): # could ask if user wants to customize message templates, # but that seems unnecessary + def get_datetime(bot): """ Returns a datetime object of the current time. """ dt = datetime.utcnow() if pytz: - dt = dt.replace(tzinfo = timezone('UTC')) + dt = dt.replace(tzinfo=timezone('UTC')) if bot.config.chanlogs.localtime: dt = dt.astimezone(timezone(bot.config.clock.tz)) if not bot.config.chanlogs.microseconds: dt = dt.replace(microsecond=0) return dt + def get_fpath(bot, trigger, channel=None): """ Returns a string corresponding to the path to the file where the message