[Python-modules-commits] r17043 - in packages/sphinx/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Wed May 18 20:35:51 UTC 2011


    Date: Wednesday, May 18, 2011 @ 20:35:43
  Author: jwilk
Revision: 17043

When Sphinx crashes, show 10 stack frames (instead of a single one).

Added:
  packages/sphinx/trunk/debian/patches/show_more_stack_frames.diff
Modified:
  packages/sphinx/trunk/debian/changelog
  packages/sphinx/trunk/debian/patches/series

Modified: packages/sphinx/trunk/debian/changelog
===================================================================
--- packages/sphinx/trunk/debian/changelog	2011-05-18 15:45:43 UTC (rev 17042)
+++ packages/sphinx/trunk/debian/changelog	2011-05-18 20:35:43 UTC (rev 17043)
@@ -1,3 +1,9 @@
+sphinx (1.0.7-4) UNRELEASED; urgency=low
+
+  * When Sphinx crashes, show 10 stack frames (instead of a single one).
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 18 May 2011 22:25:19 +0200
+
 sphinx (1.0.7-3) unstable; urgency=low
 
   [ Mikhail Gusarov ]

Modified: packages/sphinx/trunk/debian/patches/series
===================================================================
--- packages/sphinx/trunk/debian/patches/series	2011-05-18 15:45:43 UTC (rev 17042)
+++ packages/sphinx/trunk/debian/patches/series	2011-05-18 20:35:43 UTC (rev 17043)
@@ -1,3 +1,4 @@
+show_more_stack_frames.diff
 autosummary_1.0.6.patch
 move_static_files_outside_site-packages.patch
 unversioned_grammar_pickle.diff

Added: packages/sphinx/trunk/debian/patches/show_more_stack_frames.diff
===================================================================
--- packages/sphinx/trunk/debian/patches/show_more_stack_frames.diff	                        (rev 0)
+++ packages/sphinx/trunk/debian/patches/show_more_stack_frames.diff	2011-05-18 20:35:43 UTC (rev 17043)
@@ -0,0 +1,24 @@
+Description: When Sphinx crashes, show 10 stack frames (instead of a single one).
+ Normally, when Sphinx crashes, it doesn't display full stack trace (as other
+ Python application do by default), but only a single one; rest of the stack
+ trace is stored into a temporary file. Such behaviour is undesired in some
+ circumstances; e.g. is Sphinx crashes on a buildd, the full stack trace is
+ definitely lost.
+ .
+ This patch mitigates the problem by increasing number of show stack frames to
+ 10.
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-neede
+Last-Update: 2011-05-18
+
+--- a/sphinx/cmdline.py
++++ b/sphinx/cmdline.py
+@@ -212,7 +212,7 @@
+                 print >>error, err
+             else:
+                 print >>error, red('Exception occurred:')
+-                print >>error, format_exception_cut_frames().rstrip()
++                print >>error, format_exception_cut_frames(10).rstrip()
+                 tbpath = save_traceback()
+                 print >>error, red('The full traceback has been saved '
+                                    'in %s, if you want to report the '




More information about the Python-modules-commits mailing list