From a916658baf29d71fdcb6de48b74b02c8b9e31a39 Mon Sep 17 00:00:00 2001 From: Mohammed Hamdan Date: Sat, 14 Sep 2024 13:53:01 +0530 Subject: [PATCH] Update fileparser.py Remove deprecated mode --- logmein/fileparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logmein/fileparser.py b/logmein/fileparser.py index e1af3b9..63968db 100644 --- a/logmein/fileparser.py +++ b/logmein/fileparser.py @@ -4,7 +4,7 @@ def parse_file_for_credential(filename): ''' Parses the input file for login credentials ''' try: - fhan = open(filename, 'rU') + fhan = open(filename, 'r') except FileNotFoundError: print('Create a file named login.txt or .login.txt in home folder') print('type your username and password in seperate lines.')