From 68c86f53306c2bfeb98d9de73ee8ea0346332426 Mon Sep 17 00:00:00 2001 From: SushmitaY <30928963+SushmitaY@users.noreply.github.com> Date: Tue, 24 Oct 2017 21:55:50 +0530 Subject: [PATCH] Update makeclass.py Rename variable in line 44 from fOut to fIn as the file is being opened in read mode. --- makeclass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makeclass.py b/makeclass.py index 84a1b55..356d0e3 100644 --- a/makeclass.py +++ b/makeclass.py @@ -41,11 +41,11 @@ def computeModeratedMarks(file1, file2): fIn.close() fOut.close() - fOut = open(file2, 'rb') + fIn = open(file2, 'rb') while True: try: - print(pickle.load(fOut)) + print(pickle.load(fIn)) except EOFError: break