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, 0 insertions, 2 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py
index 77df1ab9b..56ae27f72 100644
--- a/sphinx/testing/path.py
+++ b/sphinx/testing/path.py
@@ -152,8 +152,6 @@ class path(text_type):
"""
Writes the given `text` to the file.
"""
- if isinstance(text, bytes):
- text = text.decode(encoding)
with open(self, 'w', encoding=encoding, **kwargs) as f:
f.write(text)