Commits

Georg Brandl committed 082151d

Add sphinx and docutils versions to saved traceback file.

  • Participants
  • Parent commits 0a7f96a

Comments (0)

Files changed (1)

File sphinx/util/__init__.py

 import traceback
 from os import path
 
+import docutils
+import sphinx
+
 
 # Generally useful regular expressions.
 ws_re = re.compile(r'\s+')
     """
     exc = traceback.format_exc()
     fd, path = tempfile.mkstemp('.log', 'sphinx-err-')
+    os.write(fd, '# Sphinx version: %s\n' % sphinx.__version__)
+    os.write(fd, '# Docutils version: %s %s\n' % (docutils.__version__,
+                                                  docutils.__version_details__))
     os.write(fd, exc)
     os.close(fd)
     return path