summaryrefslogtreecommitdiff
path: root/src/wheel/pkginfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/wheel/pkginfo.py')
-rw-r--r--src/wheel/pkginfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wheel/pkginfo.py b/src/wheel/pkginfo.py
index 0470a1d..bed016c 100644
--- a/src/wheel/pkginfo.py
+++ b/src/wheel/pkginfo.py
@@ -12,7 +12,7 @@ def read_pkg_info_bytes(bytestr):
def read_pkg_info(path):
- with open(path, "r", encoding="ascii", errors="surrogateescape") as headers:
+ with open(path, encoding="ascii", errors="surrogateescape") as headers:
message = Parser().parse(headers)
return message