From d872a23ae36cfb62a92bec0eb4937c78403ef902 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 19 Aug 2021 11:49:40 +0300 Subject: [PATCH] Update obsolete file() calls in bitmessagemain --- src/bitmessagemain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index e04e3187..2f46c6ec 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -424,9 +424,9 @@ class Main(object): sys.stdout.flush() sys.stderr.flush() if not sys.platform.startswith('win'): - si = file(os.devnull, 'r') - so = file(os.devnull, 'a+') - se = file(os.devnull, 'a+', 0) + si = open(os.devnull, 'r') + so = open(os.devnull, 'a+') + se = open(os.devnull, 'a+', 0) os.dup2(si.fileno(), sys.stdin.fileno()) os.dup2(so.fileno(), sys.stdout.fileno()) os.dup2(se.fileno(), sys.stderr.fileno())