Updated a couple data structures to pass pep8.

This commit is contained in:
John Dewey 2011-01-24 18:31:04 -08:00
parent 671557507a
commit 6e7364cb00
2 changed files with 3 additions and 5 deletions

View File

@ -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:

View File

@ -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):