From 5b427bbe7e9a4060fa23c24849c15d38dd4a0971 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 14 Jan 2022 22:46:15 +0100 Subject: fix python 2.7 test Signed-off-by: Giampaolo Rodola --- psutil/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/_common.py b/psutil/_common.py index 32351ae5..c6a6d667 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -736,7 +736,7 @@ def open_text(fname): On Python 2 this is just an alias for open(name, 'rt'). """ if not PY3: - return open_binary(fname) + return open(fname, "rt", buffering=FILE_READ_BUFFER_SIZE) # See: # https://github.com/giampaolo/psutil/issues/675 -- cgit v1.2.1