Commits

Georg Brandl  committed 06aa0b2

Remove Python 2.5ism and undefined local access.

  • Participants
  • Parent commits 70465a0

Comments (0)

Files changed (2)

File sphinx/builders/latex.py

             except UnicodeError:
                 self.warn("a Unicode error occurred when writing the output. "
                           "Please make sure all config values that contain "
-                          "non-ASCII content are Unicode strings." % pagename)
+                          "non-ASCII content are Unicode strings.")
                 return
             self.info("done")
 

File sphinx/config.py

             config['tags'] = tags
             olddir = os.getcwd()
             try:
-                os.chdir(dirname)
-                execfile(config['__file__'], config)
-            except SyntaxError, err:
-                raise ConfigError('There is a syntax error in your '
-                                  'configuration file: ' + str(err))
+                try:
+                    os.chdir(dirname)
+                    execfile(config['__file__'], config)
+                except SyntaxError, err:
+                    raise ConfigError('There is a syntax error in your '
+                                      'configuration file: ' + str(err))
             finally:
                 os.chdir(olddir)