def get_obj_doc(obj):
 doc = (getattr(obj, u'__doc__', u'') or u'')
 if (not isinstance(doc, unicode)):
  doc = unicode(doc, u'utf-8')
 return doc

def get_obj_doc ( obj ) : doc = ( getattr ( obj , u'__doc__' , u'' ) or u'' ) if ( not isinstance ( doc , unicode ) ) : doc = unicode ( doc , u'utf-8' ) return doc
return __doc__ of the given object as unicode .