lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 13a80655eaac245e3418d66fb7e7247d6be6efab
parent 2cf87b3dbbe7159676ea724b031ba8dc3bd0476c
Author: rsiddharth <rsd@gnu.org>
Date:   Sun, 26 May 2019 10:08:59 -0400

Update LPiCal.mk_datetime.

* lps_gen.py (LPiCal.mk_datetime): Use format for formatted string.

Diffstat:
lps_gen.py | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -174,10 +174,11 @@ class LPiCal(object): hour = time.split(':')[0] minute = time.split(':')[1] - datetime_str = '%s %s %s %s:%s:%s' % (day, month, self.lp_year, - hour.zfill(2), - minute.zfill(2), - '00') + datetime_str = '{} {} {} {}:{}:{}'.format(day, month, + self.lp_year, + hour.zfill(2), + minute.zfill(2), + '00') dt_object = datetime.strptime(datetime_str, datetime_fmt)