#NEWLINE# def decode_to_string( base64bz2data ) : #NEWLINE# #INDENT# 'Decodes an inventory submission, which is a plist-encoded\n    list, compressed via bz2 and base64 encoded.' #NEWLINE# try : #NEWLINE# #INDENT# bz2data = base64 . b64decode ( bz2data ) #NEWLINE# return bz2 . decompress ( bz2data ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return ''