Commits

Georg Brandl  committed 9c066a4

Record Python version in save_traceback(), to better debug 2 vs 3 issues.

  • Participants
  • Parent commits d64aa61

Comments (0)

Files changed (1)

File sphinx/util/__init__.py

     """
     Save the current exception's traceback in a temporary file.
     """
+    import platform
     exc = traceback.format_exc()
     fd, path = tempfile.mkstemp('.log', 'sphinx-err-')
     os.write(fd, '# Sphinx version: %s\n' % sphinx.__version__)
+    os.write(fd, '# Python version: %s\n' % platform.python_version())
     os.write(fd, '# Docutils version: %s %s\n' % (docutils.__version__,
                                                   docutils.__version_details__))
     os.write(fd, '# Jinja2 version: %s\n' % jinja2.__version__)