~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/idlelib/rpc.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
    # Adds names to dictionary argument 'methods'
571
571
    for name in dir(obj):
572
572
        attr = getattr(obj, name)
573
 
        if hasattr(attr, '__call__'):
 
573
        if callable(attr):
574
574
            methods[name] = 1
575
575
    if isinstance(obj, type):
576
576
        for super in obj.__bases__:
579
579
def _getattributes(obj, attributes):
580
580
    for name in dir(obj):
581
581
        attr = getattr(obj, name)
582
 
        if not hasattr(attr, '__call__'):
 
582
        if not callable(attr):
583
583
            attributes[name] = 1
584
584
 
585
585
class MethodProxy(object):