mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix SyntaxError when conf.py includes CR characters
This commit is contained in:
parent
22546c4ebe
commit
04cdfd83eb
@ -195,7 +195,7 @@ class Config(object):
|
||||
# config file is executed
|
||||
os.chdir(dirname)
|
||||
# get config source
|
||||
f = open(config_file, 'rb')
|
||||
f = open(config_file, 'rU')
|
||||
try:
|
||||
source = f.read()
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user