summaryrefslogtreecommitdiff
path: root/sphinx/testing/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/testing/path.py')
-rw-r--r--sphinx/testing/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py
index 34cdee927..574f56c6f 100644
--- a/sphinx/testing/path.py
+++ b/sphinx/testing/path.py
@@ -163,7 +163,7 @@ class path(text_type):
"""
Returns the text in the file.
"""
- with open(self, mode='r', encoding=encoding, **kwargs) as f: # type: ignore
+ with open(self, encoding=encoding, **kwargs) as f: # type: ignore
return f.read()
def bytes(self):