From f13e10c9156466af7dc80b298705cb322e75e607 Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Wed, 10 Feb 2021 13:20:11 +0300 Subject: Replace `open(file, 'r')` with `open(file)` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 66820387b..f2ee075ad 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) # intentionally *not* adding an encoding option to open, See: # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 - with open(os.path.join(here, rel_path), 'r') as fp: + with open(os.path.join(here, rel_path)) as fp: return fp.read() -- cgit v1.2.1