summaryrefslogtreecommitdiff
path: root/sphinx/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 3599ccfc1..d9282fe27 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -204,7 +204,7 @@ class Config(object):
os.chdir(dirname)
# get config source -- 'b' is a no-op under 2.x, while 'U' is
# ignored under 3.x (but 3.x compile() accepts \r\n newlines)
- f = open(config_file, 'rbU')
+ f = open(filename, 'rbU')
try:
source = f.read()
finally: