pylint fixes for payload

This commit is contained in:
Thomas S Hatch 2011-03-24 22:47:22 -06:00
parent 90953a32a9
commit 31ac413d71

View File

@ -2,7 +2,6 @@
Many aspects of the salt payload need to be managed, from the return of
encrypted keys to general payload dynamics and packaging, these happen in here
'''
import os
import cPickle as pickle
def package(payload, protocol=2):
@ -12,11 +11,11 @@ def package(payload, protocol=2):
'''
return pickle.dumps(payload, protocol)
def unpackage(package):
def unpackage(package_):
'''
Unpackages a payload
'''
return pickle.loads(package)
return pickle.loads(package_)
def format_payload(enc, **kwargs):
'''