def getDeprecated(self, decorators):
 for a in decorators:
  if isinstance(a, ast.CallFunc):
   decorator = a.asList()
   if isinstance(decorator[0], ast.Getattr):
    getAttr = decorator[0].asList()
    name = getAttr[0].name
    fn = ((self.expandName(name) + '.') + getAttr[1])
   else:
    fn = self.expandName(decorator[0].name)
   if (fn == 'twisted.python.deprecate.deprecated'):
    try:
     self._deprecated_info = deprecatedToUsefulText(self.name, decorator)
    except AttributeError:
     pass

def getDeprecated ( self , decorators ) : for a in decorators : if isinstance ( a , ast . CallFunc ) : decorator = a . asList ( ) if isinstance ( decorator [ 0 ] , ast . Getattr ) : getAttr = decorator [ 0 ] . asList ( ) name = getAttr [ 0 ] . name fn = ( ( self . expandName ( name ) + '.' ) + getAttr [ 1 ] ) else : fn = self . expandName ( decorator [ 0 ] . name ) if ( fn == 'twisted.python.deprecate.deprecated' ) : try : self . _deprecated_info = deprecatedToUsefulText ( self . name , decorator ) except AttributeError : pass
with a list of decorators .