~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Lib/SimpleXMLRPCServer.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 
142
142
    return [member for member in dir(obj)
143
143
                if not member.startswith('_') and
144
 
                    callable(getattr(obj, member))]
 
144
                    hasattr(getattr(obj, member), '__call__')]
145
145
 
146
146
def remove_duplicates(lst):
147
147
    """remove_duplicates([2,2,2,1,3,3]) => [3,1,2]
315
315
        Returns a string containing documentation for the specified method."""
316
316
 
317
317
        method = None
318
 
        if self.funcs.has_key(method_name):
 
318
        if method_name in self.funcs:
319
319
            method = self.funcs[method_name]
320
320
        elif self.instance is not None:
321
321
            # Instance can implement _methodHelp to return help for a method