From 40e651acc5a143d8cec0e215555360cfe71b2f6b Mon Sep 17 00:00:00 2001 From: Robert Wilkins III Date: Thu, 4 Feb 2016 05:14:23 -0600 Subject: [PATCH] Update start.py to fix issue in the WITH statements --- start.py | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/start.py b/start.py index afb70de..8efacd3 100644 --- a/start.py +++ b/start.py @@ -4,21 +4,20 @@ with open('updates.txt', 'r') as morningstart: morningstart.read() linelist = morningstart.readline() - -operstamp = getpass.getuser() -timestamp = datetime.datetime.now().strftime('%Y%m%d-%H:%M:%S') + operstamp = getpass.getuser() + timestamp = datetime.datetime.now().strftime('%Y%m%d-%H:%M:%S') with open('updates.txt', 'a') as dailyupdates: -print('This is your last update: ') -print (linelist) -print('What are your updates?') -typedupdates = input() -nline = "\n" -iline = " -- " -dailyupdates.write(operstamp) -dailyupdates.write(iline) -dailyupdates.write(timestamp) -dailyupdates.write(nline) -dailyupdates.write(typedupdates) -ender = "\nEOF-------------------------------------------EOF\n\n" -dailyupdates.write(ender) + print('This is your last update: ') + print (linelist) + print('What are your updates?') + typedupdates = input() + nline = "\n" + iline = " -- " + dailyupdates.write(operstamp) + dailyupdates.write(iline) + dailyupdates.write(timestamp) + dailyupdates.write(nline) + dailyupdates.write(typedupdates) + ender = "\nEOF-------------------------------------------EOF\n\n" + dailyupdates.write(ender)