From beaa7a47e1db8e0f0923f72dfe5cbbe82e0306a0 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 11 Feb 2020 17:05:05 -0800 Subject: [PATCH] Rename this variable strftime -> strf. --- voussoirkit/eternalseptember.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/voussoirkit/eternalseptember.py b/voussoirkit/eternalseptember.py index 9b72311..18f54bb 100644 --- a/voussoirkit/eternalseptember.py +++ b/voussoirkit/eternalseptember.py @@ -30,20 +30,20 @@ def september_day(date): days = diff.days + 1 return days -def september_string(date, strftime): +def september_string(date, strf): ''' Return the ES formatted string for this date. ''' date = normalize_date(date) day = str(september_day(date)) - strftime = strftime.replace('%a', date.strftime('%a')) - strftime = strftime.replace('%A', date.strftime('%A')) - strftime = strftime.replace('%d', day) - strftime = strftime.replace('%-d', day) + strf = strf.replace('%a', date.strftime('%a')) + strf = strf.replace('%A', date.strftime('%A')) + strf = strf.replace('%d', day) + strf = strf.replace('%-d', day) date = date.replace(month=EPOCH.month, year=EPOCH.year) - return date.strftime(strftime) + return date.strftime(strf) if __name__ == '__main__': print(september_string(now(), '%Y %B %d %H:%M:%S'))