summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Dewey <john@dewey.ws>2011-01-24 18:31:04 -0800
committerJohn Dewey <john@dewey.ws>2011-01-24 18:31:04 -0800
commit6e7364cb00fd33e82d87aa2006be1b512ae35cc2 (patch)
tree9a8313e33bfcb25c69cf268a415d9124fbd001f4
parent671557507ae65ff5521e32f0d6cf2342e3a5af55 (diff)
downloadnova-6e7364cb00fd33e82d87aa2006be1b512ae35cc2.tar.gz
nova-6e7364cb00fd33e82d87aa2006be1b512ae35cc2.tar.xz
nova-6e7364cb00fd33e82d87aa2006be1b512ae35cc2.zip
Updated a couple data structures to pass pep8.
-rw-r--r--bin/nova-spoolsentry6
-rw-r--r--nova/tests/test_virt.py2
2 files changed, 3 insertions, 5 deletions
diff --git a/bin/nova-spoolsentry b/bin/nova-spoolsentry
index ab20268a9..325e92191 100644
--- a/bin/nova-spoolsentry
+++ b/bin/nova-spoolsentry
@@ -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:
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py
index f6800e3d9..0b9b847a0 100644
--- a/nova/tests/test_virt.py
+++ b/nova/tests/test_virt.py
@@ -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):