~rosco2/ubuntu/wily/gramps/bug-1492304

« back to all changes in this revision

Viewing changes to gramps/gen/utils/debug.py

  • Committer: Package Import Robot
  • Author(s): Ross Gammon
  • Date: 2015-08-11 23:03:11 UTC
  • mfrom: (1.4.3)
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20150811230311-acjr8gcfe8isx7ij
* New upstream release
* Drop patches applied upstream or cherry-picked from there
* Add version constraints for gtk and pygobject
* Add goocanvas dependency - available soon
* Drop webkit dpendency as HTML view has been removed
* Force removal of upstream packages when installing Debian one
  (LP: #1464845)
* Drop fixperm override as permissions fixed upstream
* Fix spelling error in changelog
* Switch to nose for unit tests
* Add build dependencies for the nose tests
* Update copyright file
* Add uversionmangle to watch file to deal with alpha/beta versions
* Add manual test cases
* Drop FAQ URL from upstream metadata - changes every release
* Add patch to fix transparent windows in Ubuntu.
  Thanks to Lance Orner (LP: #1451259)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
Debugging utilities
25
25
"""
26
26
 
27
 
from __future__ import print_function
28
 
 
29
27
#-------------------------------------------------------------------------
30
28
#
31
29
# Debugging utilities
57
55
    """
58
56
    import sys
59
57
    import traceback
60
 
    from gramps.gen.constfunc import cuni
61
58
    if tb_type is None:
62
59
        tb_type = sys.exc_type
63
60
    if tb_value is None:
85
82
            #handler! Calling str() on an unknown object could cause an
86
83
            #error we don't want.
87
84
            try:                   
88
 
                line = "  %s = %s\n" % (key, cuni(value))
 
85
                line = "  %s = %s\n" % (key, str(value))
89
86
            except:
90
87
                line = "  %s = %s\n" % (key, "<ERROR PRINTING VALUE>")
91
88
            retval.append(line)