mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Drop unused code (again)
This commit is contained in:
parent
61df39f535
commit
b48fed2aac
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user