summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-22 10:23:29 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-22 10:23:29 +0900
commitb48fed2aac03c59313f67758e30f3f788908d943 (patch)
treef962c0a152c844ebd31156ca9ef495d203d90807 /sphinx/util/pycompat.py
parent61df39f5354f30b98aceb665d5a1c6dbde93019f (diff)
downloadsphinx-git-b48fed2aac03c59313f67758e30f3f788908d943.tar.gz
Drop unused code (again)
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py
index 69a4351bf..e9dec7736 100644
--- a/sphinx/util/pycompat.py
+++ b/sphinx/util/pycompat.py
@@ -135,10 +135,6 @@ def execfile_(filepath, _globals, open=open):
with open(filepath, mode) as f:
source = f.read()
- # py26 accept only LF eol instead of CRLF
- if sys.version_info[:2] == (2, 6):
- source = source.replace(b'\r\n', b'\n')
-
# compile to a code object, handle syntax errors
filepath_enc = filepath.encode(fs_encoding)
try: