diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-12-17 12:10:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 15:10:21 -0500 |
commit | 0683b794027e4b876dba9833a0607e1502faea50 (patch) | |
tree | 99495e9f22dca320b0329ff04082e811a7af1cdb | |
parent | 97cd4031549d363fa34737635eab33491fa718fe (diff) | |
download | pyjwt-0683b794027e4b876dba9833a0607e1502faea50.tar.gz |
Replace codecs.open() with builtin open() (#548)
Since Python 3, these two functions are functionally equivalent, so use
the builtin one.
-rw-r--r-- | docs/conf.py | 3 |
1 files changed, 1 insertions, 2 deletions
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() |