From 0683b794027e4b876dba9833a0607e1502faea50 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 17 Dec 2020 12:10:21 -0800 Subject: Replace codecs.open() with builtin open() (#548) Since Python 3, these two functions are functionally equivalent, so use the builtin one. --- docs/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 18a4ecf..8c1da89 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -import codecs import os import re @@ -11,7 +10,7 @@ def read(*parts): resulting file. Assume UTF-8 encoding. """ here = os.path.abspath(os.path.dirname(__file__)) - with codecs.open(os.path.join(here, *parts), "rb", "utf-8") as f: + with open(os.path.join(here, *parts), encoding="utf-8") as f: return f.read() -- cgit v1.2.1