Updated a couple data structures to pass pep8.
This commit is contained in:
parent
671557507a
commit
6e7364cb00
@ -74,10 +74,8 @@ class SpoolSentry(object):
|
||||
return rv
|
||||
|
||||
def send_data(self, data):
|
||||
data = {
|
||||
'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
|
||||
'key': self.key
|
||||
}
|
||||
data = {'data': base64.b64encode(pickle.dumps(data).encode('zlib')),
|
||||
'key': self.key}
|
||||
req = urllib2.Request(self.sentry_url)
|
||||
res = urllib2.urlopen(req, urllib.urlencode(data))
|
||||
if res.getcode() != 200:
|
||||
|
@ -256,7 +256,7 @@ class IptablesFirewallTestCase(test.TestCase):
|
||||
':FORWARD ACCEPT [0:0]',
|
||||
':OUTPUT ACCEPT [349256:75777230]',
|
||||
'COMMIT',
|
||||
'# Completed on Tue Jan 18 23:47:56 2011'
|
||||
'# Completed on Tue Jan 18 23:47:56 2011',
|
||||
]
|
||||
|
||||
def test_static_filters(self):
|
||||
|
Loading…
Reference in New Issue
Block a user