def writePlistToString(rootObject):
 f = StringIO()
 writePlist(rootObject, f)
 return f.getvalue()

def writePlistToString ( rootObject ) : f = StringIO ( ) writePlist ( rootObject , f ) return f . getvalue ( )
return rootobject as a plist-formatted string .