Commits

Takeshi Komiya  committed 062dd35

Fix SyntaxError when conf.py includes CR characters

  • Participants
  • Parent commits f1f6416

Comments (0)

Files changed (1)

File sphinx/config.py

                 # 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: