mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Fix SyntaxError when conf.py includes CR characters
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user