def _ensureOldClass(cls):
 if (not (type(cls) is types.ClassType)):
  from twisted.python.reflect import fullyQualifiedName
  raise ValueError('twisted.python._oldstyle._oldStyle is being used to decorate a new-style class ({cls}). This should only be used to decorate old-style classes.'.format(cls=fullyQualifiedName(cls)))
 return cls

def _ensureOldClass ( cls ) : if ( not ( type ( cls ) is types . ClassType ) ) : from twisted . python . reflect import fullyQualifiedName raise ValueError ( 'twisted.python._oldstyle._oldStyle is being used to decorate a new-style class ({cls}). This should only be used to decorate old-style classes.' . format ( cls = fullyQualifiedName ( cls ) ) ) return cls
ensure that c{cls} is an old-style class .