From 04cdfd83ebd7fde59f31c02952a6bead959db45c Mon Sep 17 00:00:00 2001 From: tk0miya Date: Sat, 22 Oct 2011 13:42:48 +0900 Subject: [PATCH] Fix SyntaxError when conf.py includes CR characters --- sphinx/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/config.py b/sphinx/config.py index b05054c60..4bcf1b2cd 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -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: