~ubuntu-branches/ubuntu/raring/ipython/raring

« back to all changes in this revision

Viewing changes to IPython/lib/pretty.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-02 11:14:27 UTC
  • mfrom: (1.2.21) (6.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130202111427-nxxl7g1ulix8g9lg
Tags: 0.13.2~rc2-1
* New upstream release candidate (LP: #1161818, #1162112)
* pass -a to xvfb-run
* drop DM-Upload-Allowed, not needed anymore
* don't link documentation of ipython-doc so ipython3 does not depend on
  ipython (Closes: #695554)
  Requires ipython-doc.preinst to not lose copyright on upgrade
* add ipython3 and ipython3-qtconsole desktop files (Closes: #693612)
* fix detection of cython modules for multiarch python (Closes: #697704)
* don't install tests for notebook and qtconsole
* bump standard to 3.9.4, no changes required
* add autopkgtests running testsuite and testing tools, cython magics
  and incomplete install message
* fix crash on tracebacks without line numbers (Closes: #701597)
* add tkinter package to debianize-error-messages.patch (Closes: #701707)
* use canonical vcs fields in control

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
 
603
603
def _type_pprint(obj, p, cycle):
604
604
    """The pprint for classes and types."""
605
 
    if obj.__module__ in ('__builtin__', 'exceptions'):
 
605
    try:
 
606
        mod = obj.__module__
 
607
    except AttributeError:
 
608
        # Heap allocated types might not have the module attribute.
 
609
        return p.text(obj.__name__)
 
610
 
 
611
    if mod in ('__builtin__', 'exceptions'):
606
612
        name = obj.__name__
607
613
    else:
608
 
        name = obj.__module__ + '.' + obj.__name__
 
614
        name = mod + '.' + obj.__name__
609
615
    p.text(name)
610
616
 
611
617