Merge lp:~blamar/nova/pylint-deprecations into lp:~hudson-openstack/nova/trunk

Proposed by Brian Lamar
Status: Merged
Approved by: Devin Carlen
Approved revision: 830
Merged at revision: 832
Proposed branch: lp:~blamar/nova/pylint-deprecations
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 500 lines (+49/-49)
24 files modified
bin/nova-ajax-console-proxy (+1/-1)
bin/nova-api (+1/-1)
bin/nova-direct-api (+1/-1)
bin/nova-instancemonitor (+1/-1)
bin/nova-objectstore (+1/-1)
nova/auth/fakeldap.py (+5/-5)
nova/auth/ldapdriver.py (+1/-1)
nova/auth/manager.py (+1/-1)
nova/compute/manager.py (+2/-2)
nova/db/api.py (+1/-1)
nova/db/base.py (+1/-1)
nova/db/sqlalchemy/api.py (+1/-1)
nova/network/linux_net.py (+3/-3)
nova/network/manager.py (+2/-2)
nova/objectstore/handler.py (+7/-7)
nova/rpc.py (+3/-3)
nova/service.py (+1/-1)
nova/tests/api/test_wsgi.py (+1/-1)
nova/tests/hyperv_unittest.py (+1/-1)
nova/tests/objectstore_unittest.py (+5/-5)
nova/tests/test_api.py (+1/-1)
nova/tests/test_middleware.py (+2/-2)
po/nova.pot (+5/-5)
tools/euca-get-ajax-console (+1/-1)
To merge this branch: bzr merge lp:~blamar/nova/pylint-deprecations
Reviewer Review Type Date Requested Status
Devin Carlen (community) Approve
justinsb (community) Approve
Christian Berendt (community) Approve
Review via email: mp+53990@code.launchpad.net

Description of the change

Replaced all pylint "disable-msg=" with "disable=" and "enable-msg=" with "enable=".

To post a comment you must log in.
Revision history for this message
Brian Lamar (blamar) wrote :

Removed my old proposal which had a bunch of different pylint fixes in favor of a couple smaller ones as per community suggestion.

Revision history for this message
Christian Berendt (berendt) wrote :

lgtm

review: Approve
Revision history for this message
justinsb (justin-fathomdb) wrote :

lgtm

Thanks for splitting it out into separate patches.

review: Approve
Revision history for this message
Devin Carlen (devcamcar) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/nova-ajax-console-proxy'
--- bin/nova-ajax-console-proxy 2011-02-25 21:15:51 +0000
+++ bin/nova-ajax-console-proxy 2011-03-18 13:59:32 +0000
@@ -1,5 +1,5 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# pylint: disable-msg=C01032# pylint: disable=C0103
3# vim: tabstop=4 shiftwidth=4 softtabstop=43# vim: tabstop=4 shiftwidth=4 softtabstop=4
44
5# Copyright 2010 United States Government as represented by the5# Copyright 2010 United States Government as represented by the
66
=== modified file 'bin/nova-api'
--- bin/nova-api 2011-03-10 06:23:13 +0000
+++ bin/nova-api 2011-03-18 13:59:32 +0000
@@ -1,5 +1,5 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# pylint: disable-msg=C01032# pylint: disable=C0103
3# vim: tabstop=4 shiftwidth=4 softtabstop=43# vim: tabstop=4 shiftwidth=4 softtabstop=4
44
5# Copyright 2010 United States Government as represented by the5# Copyright 2010 United States Government as represented by the
66
=== modified file 'bin/nova-direct-api'
--- bin/nova-direct-api 2011-02-23 23:26:52 +0000
+++ bin/nova-direct-api 2011-03-18 13:59:32 +0000
@@ -1,5 +1,5 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# pylint: disable-msg=C01032# pylint: disable=C0103
3# vim: tabstop=4 shiftwidth=4 softtabstop=43# vim: tabstop=4 shiftwidth=4 softtabstop=4
44
5# Copyright 2010 United States Government as represented by the5# Copyright 2010 United States Government as represented by the
66
=== modified file 'bin/nova-instancemonitor'
--- bin/nova-instancemonitor 2011-02-21 21:46:41 +0000
+++ bin/nova-instancemonitor 2011-03-18 13:59:32 +0000
@@ -50,7 +50,7 @@
5050
51if __name__ == '__builtin__':51if __name__ == '__builtin__':
52 LOG.warn(_('Starting instance monitor'))52 LOG.warn(_('Starting instance monitor'))
53 # pylint: disable-msg=C010353 # pylint: disable=C0103
54 monitor = monitor.InstanceMonitor()54 monitor = monitor.InstanceMonitor()
5555
56 # This is the parent service that twistd will be looking for when it56 # This is the parent service that twistd will be looking for when it
5757
=== modified file 'bin/nova-objectstore'
--- bin/nova-objectstore 2010-12-14 23:22:03 +0000
+++ bin/nova-objectstore 2011-03-18 13:59:32 +0000
@@ -49,4 +49,4 @@
49 twistd.serve(__file__)49 twistd.serve(__file__)
5050
51if __name__ == '__builtin__':51if __name__ == '__builtin__':
52 application = handler.get_application() # pylint: disable-msg=C010352 application = handler.get_application() # pylint: disable=C0103
5353
=== modified file 'nova/auth/fakeldap.py'
--- nova/auth/fakeldap.py 2010-12-22 23:47:31 +0000
+++ nova/auth/fakeldap.py 2011-03-18 13:59:32 +0000
@@ -90,12 +90,12 @@
90MOD_REPLACE = 290MOD_REPLACE = 2
9191
9292
93class NO_SUCH_OBJECT(Exception): # pylint: disable-msg=C010393class NO_SUCH_OBJECT(Exception): # pylint: disable=C0103
94 """Duplicate exception class from real LDAP module."""94 """Duplicate exception class from real LDAP module."""
95 pass95 pass
9696
9797
98class OBJECT_CLASS_VIOLATION(Exception): # pylint: disable-msg=C010398class OBJECT_CLASS_VIOLATION(Exception): # pylint: disable=C0103
99 """Duplicate exception class from real LDAP module."""99 """Duplicate exception class from real LDAP module."""
100 pass100 pass
101101
@@ -268,7 +268,7 @@
268 # get the attributes from the store268 # get the attributes from the store
269 attrs = store.hgetall(key)269 attrs = store.hgetall(key)
270 # turn the values from the store into lists270 # turn the values from the store into lists
271 # pylint: disable-msg=E1103271 # pylint: disable=E1103
272 attrs = dict([(k, _from_json(v))272 attrs = dict([(k, _from_json(v))
273 for k, v in attrs.iteritems()])273 for k, v in attrs.iteritems()])
274 # filter the objects by query274 # filter the objects by query
@@ -277,12 +277,12 @@
277 attrs = dict([(k, v) for k, v in attrs.iteritems()277 attrs = dict([(k, v) for k, v in attrs.iteritems()
278 if not fields or k in fields])278 if not fields or k in fields])
279 objects.append((key[len(self.__prefix):], attrs))279 objects.append((key[len(self.__prefix):], attrs))
280 # pylint: enable-msg=E1103280 # pylint: enable=E1103
281 if objects == []:281 if objects == []:
282 raise NO_SUCH_OBJECT()282 raise NO_SUCH_OBJECT()
283 return objects283 return objects
284284
285 @property285 @property
286 def __prefix(self): # pylint: disable-msg=R0201286 def __prefix(self): # pylint: disable=R0201
287 """Get the prefix to use for all keys."""287 """Get the prefix to use for all keys."""
288 return 'ldap:'288 return 'ldap:'
289289
=== modified file 'nova/auth/ldapdriver.py'
--- nova/auth/ldapdriver.py 2011-03-17 23:32:25 +0000
+++ nova/auth/ldapdriver.py 2011-03-18 13:59:32 +0000
@@ -634,6 +634,6 @@
634class FakeLdapDriver(LdapDriver):634class FakeLdapDriver(LdapDriver):
635 """Fake Ldap Auth driver"""635 """Fake Ldap Auth driver"""
636636
637 def __init__(self): # pylint: disable-msg=W0231637 def __init__(self): # pylint: disable=W0231
638 __import__('nova.auth.fakeldap')638 __import__('nova.auth.fakeldap')
639 self.ldap = sys.modules['nova.auth.fakeldap']639 self.ldap = sys.modules['nova.auth.fakeldap']
640640
=== modified file 'nova/auth/manager.py'
--- nova/auth/manager.py 2011-01-19 02:00:28 +0000
+++ nova/auth/manager.py 2011-03-18 13:59:32 +0000
@@ -22,7 +22,7 @@
2222
23import os23import os
24import shutil24import shutil
25import string # pylint: disable-msg=W040225import string # pylint: disable=W0402
26import tempfile26import tempfile
27import uuid27import uuid
28import zipfile28import zipfile
2929
=== modified file 'nova/compute/manager.py'
--- nova/compute/manager.py 2011-03-15 21:56:00 +0000
+++ nova/compute/manager.py 2011-03-18 13:59:32 +0000
@@ -220,7 +220,7 @@
220 self.db.instance_update(context,220 self.db.instance_update(context,
221 instance_id,221 instance_id,
222 {'launched_at': now})222 {'launched_at': now})
223 except Exception: # pylint: disable-msg=W0702223 except Exception: # pylint: disable=W0702
224 LOG.exception(_("instance %s: Failed to spawn"), instance_id,224 LOG.exception(_("instance %s: Failed to spawn"), instance_id,
225 context=context)225 context=context)
226 self.db.instance_set_state(context,226 self.db.instance_set_state(context,
@@ -692,7 +692,7 @@
692 volume_id,692 volume_id,
693 instance_id,693 instance_id,
694 mountpoint)694 mountpoint)
695 except Exception as exc: # pylint: disable-msg=W0702695 except Exception as exc: # pylint: disable=W0702
696 # NOTE(vish): The inline callback eats the exception info so we696 # NOTE(vish): The inline callback eats the exception info so we
697 # log the traceback here and reraise the same697 # log the traceback here and reraise the same
698 # ecxception below.698 # ecxception below.
699699
=== modified file 'nova/db/api.py'
--- nova/db/api.py 2011-03-15 07:45:35 +0000
+++ nova/db/api.py 2011-03-18 13:59:32 +0000
@@ -608,7 +608,7 @@
608 return IMPL.network_get_all(context)608 return IMPL.network_get_all(context)
609609
610610
611# pylint: disable-msg=C0103611# pylint: disable=C0103
612def network_get_associated_fixed_ips(context, network_id):612def network_get_associated_fixed_ips(context, network_id):
613 """Get all network's ips that have been associated."""613 """Get all network's ips that have been associated."""
614 return IMPL.network_get_associated_fixed_ips(context, network_id)614 return IMPL.network_get_associated_fixed_ips(context, network_id)
615615
=== modified file 'nova/db/base.py'
--- nova/db/base.py 2010-12-01 17:24:39 +0000
+++ nova/db/base.py 2011-03-18 13:59:32 +0000
@@ -33,4 +33,4 @@
33 def __init__(self, db_driver=None):33 def __init__(self, db_driver=None):
34 if not db_driver:34 if not db_driver:
35 db_driver = FLAGS.db_driver35 db_driver = FLAGS.db_driver
36 self.db = utils.import_object(db_driver) # pylint: disable-msg=C010336 self.db = utils.import_object(db_driver) # pylint: disable=C0103
3737
=== modified file 'nova/db/sqlalchemy/api.py'
--- nova/db/sqlalchemy/api.py 2011-03-17 20:27:23 +0000
+++ nova/db/sqlalchemy/api.py 2011-03-18 13:59:32 +0000
@@ -1249,7 +1249,7 @@
12491249
1250# NOTE(vish): pylint complains because of the long method name, but1250# NOTE(vish): pylint complains because of the long method name, but
1251# it fits with the names of the rest of the methods1251# it fits with the names of the rest of the methods
1252# pylint: disable-msg=C01031252# pylint: disable=C0103
12531253
12541254
1255@require_admin_context1255@require_admin_context
12561256
=== modified file 'nova/network/linux_net.py'
--- nova/network/linux_net.py 2011-03-14 13:21:44 +0000
+++ nova/network/linux_net.py 2011-03-18 13:59:32 +0000
@@ -582,7 +582,7 @@
582 try:582 try:
583 _execute('sudo', 'kill', '-HUP', pid)583 _execute('sudo', 'kill', '-HUP', pid)
584 return584 return
585 except Exception as exc: # pylint: disable-msg=W0703585 except Exception as exc: # pylint: disable=W0703
586 LOG.debug(_("Hupping dnsmasq threw %s"), exc)586 LOG.debug(_("Hupping dnsmasq threw %s"), exc)
587 else:587 else:
588 LOG.debug(_("Pid %d is stale, relaunching dnsmasq"), pid)588 LOG.debug(_("Pid %d is stale, relaunching dnsmasq"), pid)
@@ -626,7 +626,7 @@
626 if conffile in out:626 if conffile in out:
627 try:627 try:
628 _execute('sudo', 'kill', pid)628 _execute('sudo', 'kill', pid)
629 except Exception as exc: # pylint: disable-msg=W0703629 except Exception as exc: # pylint: disable=W0703
630 LOG.debug(_("killing radvd threw %s"), exc)630 LOG.debug(_("killing radvd threw %s"), exc)
631 else:631 else:
632 LOG.debug(_("Pid %d is stale, relaunching radvd"), pid)632 LOG.debug(_("Pid %d is stale, relaunching radvd"), pid)
@@ -713,7 +713,7 @@
713 if pid:713 if pid:
714 try:714 try:
715 _execute('sudo', 'kill', '-TERM', pid)715 _execute('sudo', 'kill', '-TERM', pid)
716 except Exception as exc: # pylint: disable-msg=W0703716 except Exception as exc: # pylint: disable=W0703
717 LOG.debug(_("Killing dnsmasq threw %s"), exc)717 LOG.debug(_("Killing dnsmasq threw %s"), exc)
718718
719719
720720
=== modified file 'nova/network/manager.py'
--- nova/network/manager.py 2011-03-09 18:16:26 +0000
+++ nova/network/manager.py 2011-03-18 13:59:32 +0000
@@ -322,12 +322,12 @@
322 self._create_fixed_ips(context, network_ref['id'])322 self._create_fixed_ips(context, network_ref['id'])
323323
324 @property324 @property
325 def _bottom_reserved_ips(self): # pylint: disable-msg=R0201325 def _bottom_reserved_ips(self): # pylint: disable=R0201
326 """Number of reserved ips at the bottom of the range."""326 """Number of reserved ips at the bottom of the range."""
327 return 2 # network, gateway327 return 2 # network, gateway
328328
329 @property329 @property
330 def _top_reserved_ips(self): # pylint: disable-msg=R0201330 def _top_reserved_ips(self): # pylint: disable=R0201
331 """Number of reserved ips at the top of the range."""331 """Number of reserved ips at the top of the range."""
332 return 1 # broadcast332 return 1 # broadcast
333333
334334
=== modified file 'nova/objectstore/handler.py'
--- nova/objectstore/handler.py 2011-01-21 21:10:26 +0000
+++ nova/objectstore/handler.py 2011-03-18 13:59:32 +0000
@@ -167,7 +167,7 @@
167 def __init__(self):167 def __init__(self):
168 ErrorHandlingResource.__init__(self)168 ErrorHandlingResource.__init__(self)
169169
170 def getChild(self, name, request): # pylint: disable-msg=C0103170 def getChild(self, name, request): # pylint: disable=C0103
171 """Returns either the image or bucket resource"""171 """Returns either the image or bucket resource"""
172 request.context = get_context(request)172 request.context = get_context(request)
173 if name == '':173 if name == '':
@@ -177,7 +177,7 @@
177 else:177 else:
178 return BucketResource(name)178 return BucketResource(name)
179179
180 def render_GET(self, request): # pylint: disable-msg=R0201180 def render_GET(self, request): # pylint: disable=R0201
181 """Renders the GET request for a list of buckets as XML"""181 """Renders the GET request for a list of buckets as XML"""
182 LOG.debug(_('List of buckets requested'), context=request.context)182 LOG.debug(_('List of buckets requested'), context=request.context)
183 buckets = [b for b in bucket.Bucket.all()183 buckets = [b for b in bucket.Bucket.all()
@@ -355,7 +355,7 @@
355 else:355 else:
356 return ImageResource(name)356 return ImageResource(name)
357357
358 def render_GET(self, request): # pylint: disable-msg=R0201358 def render_GET(self, request): # pylint: disable=R0201
359 """ returns a json listing of all images359 """ returns a json listing of all images
360 that a user has permissions to see """360 that a user has permissions to see """
361361
@@ -384,7 +384,7 @@
384 request.finish()384 request.finish()
385 return server.NOT_DONE_YET385 return server.NOT_DONE_YET
386386
387 def render_PUT(self, request): # pylint: disable-msg=R0201387 def render_PUT(self, request): # pylint: disable=R0201
388 """ create a new registered image """388 """ create a new registered image """
389389
390 image_id = get_argument(request, 'image_id', u'')390 image_id = get_argument(request, 'image_id', u'')
@@ -413,7 +413,7 @@
413 p.start()413 p.start()
414 return ''414 return ''
415415
416 def render_POST(self, request): # pylint: disable-msg=R0201416 def render_POST(self, request): # pylint: disable=R0201
417 """Update image attributes: public/private"""417 """Update image attributes: public/private"""
418418
419 # image_id required for all requests419 # image_id required for all requests
@@ -441,7 +441,7 @@
441 image_object.update_user_editable_fields(clean_args)441 image_object.update_user_editable_fields(clean_args)
442 return ''442 return ''
443443
444 def render_DELETE(self, request): # pylint: disable-msg=R0201444 def render_DELETE(self, request): # pylint: disable=R0201
445 """Delete a registered image"""445 """Delete a registered image"""
446 image_id = get_argument(request, "image_id", u"")446 image_id = get_argument(request, "image_id", u"")
447 image_object = image.Image(image_id)447 image_object = image.Image(image_id)
@@ -471,7 +471,7 @@
471 application = service.Application("objectstore")471 application = service.Application("objectstore")
472 # Disabled because of lack of proper introspection in Twisted472 # Disabled because of lack of proper introspection in Twisted
473 # or possibly different versions of twisted?473 # or possibly different versions of twisted?
474 # pylint: disable-msg=E1101474 # pylint: disable=E1101
475 objectStoreService = internet.TCPServer(FLAGS.s3_port, factory,475 objectStoreService = internet.TCPServer(FLAGS.s3_port, factory,
476 interface=FLAGS.s3_listen_host)476 interface=FLAGS.s3_listen_host)
477 objectStoreService.setServiceParent(application)477 objectStoreService.setServiceParent(application)
478478
=== modified file 'nova/rpc.py'
--- nova/rpc.py 2011-03-17 23:41:16 +0000
+++ nova/rpc.py 2011-03-18 13:59:32 +0000
@@ -62,7 +62,7 @@
62 params['backend_cls'] = fakerabbit.Backend62 params['backend_cls'] = fakerabbit.Backend
6363
64 # NOTE(vish): magic is fun!64 # NOTE(vish): magic is fun!
65 # pylint: disable-msg=W014265 # pylint: disable=W0142
66 if new:66 if new:
67 return cls(**params)67 return cls(**params)
68 else:68 else:
@@ -114,7 +114,7 @@
114 if self.failed_connection:114 if self.failed_connection:
115 # NOTE(vish): connection is defined in the parent class, we can115 # NOTE(vish): connection is defined in the parent class, we can
116 # recreate it as long as we create the backend too116 # recreate it as long as we create the backend too
117 # pylint: disable-msg=W0201117 # pylint: disable=W0201
118 self.connection = Connection.recreate()118 self.connection = Connection.recreate()
119 self.backend = self.connection.create_backend()119 self.backend = self.connection.create_backend()
120 self.declare()120 self.declare()
@@ -125,7 +125,7 @@
125 # NOTE(vish): This is catching all errors because we really don't125 # NOTE(vish): This is catching all errors because we really don't
126 # want exceptions to be logged 10 times a second if some126 # want exceptions to be logged 10 times a second if some
127 # persistent failure occurs.127 # persistent failure occurs.
128 except Exception: # pylint: disable-msg=W0703128 except Exception: # pylint: disable=W0703
129 if not self.failed_connection:129 if not self.failed_connection:
130 LOG.exception(_("Failed to fetch message from queue"))130 LOG.exception(_("Failed to fetch message from queue"))
131 self.failed_connection = True131 self.failed_connection = True
132132
=== modified file 'nova/service.py'
--- nova/service.py 2011-03-10 06:23:13 +0000
+++ nova/service.py 2011-03-18 13:59:32 +0000
@@ -217,7 +217,7 @@
217 logging.error(_("Recovered model server connection!"))217 logging.error(_("Recovered model server connection!"))
218218
219 # TODO(vish): this should probably only catch connection errors219 # TODO(vish): this should probably only catch connection errors
220 except Exception: # pylint: disable-msg=W0702220 except Exception: # pylint: disable=W0702
221 if not getattr(self, "model_disconnected", False):221 if not getattr(self, "model_disconnected", False):
222 self.model_disconnected = True222 self.model_disconnected = True
223 logging.exception(_("model server went away"))223 logging.exception(_("model server went away"))
224224
=== modified file 'nova/tests/api/test_wsgi.py'
--- nova/tests/api/test_wsgi.py 2011-03-09 20:08:11 +0000
+++ nova/tests/api/test_wsgi.py 2011-03-18 13:59:32 +0000
@@ -80,7 +80,7 @@
80 "attributes": {80 "attributes": {
81 "test": ["id"]}}}81 "test": ["id"]}}}
8282
83 def show(self, req, id): # pylint: disable-msg=W0622,C010383 def show(self, req, id): # pylint: disable=W0622,C0103
84 return {"test": {"id": id}}84 return {"test": {"id": id}}
8585
86 def __init__(self):86 def __init__(self):
8787
=== modified file 'nova/tests/hyperv_unittest.py'
--- nova/tests/hyperv_unittest.py 2011-01-05 23:02:09 +0000
+++ nova/tests/hyperv_unittest.py 2011-03-18 13:59:32 +0000
@@ -51,7 +51,7 @@
51 instance_ref = db.instance_create(self.context, instance)51 instance_ref = db.instance_create(self.context, instance)
5252
53 conn = hyperv.get_connection(False)53 conn = hyperv.get_connection(False)
54 conn._create_vm(instance_ref) # pylint: disable-msg=W021254 conn._create_vm(instance_ref) # pylint: disable=W0212
55 found = [n for n in conn.list_instances()55 found = [n for n in conn.list_instances()
56 if n == instance_ref['name']]56 if n == instance_ref['name']]
57 self.assertTrue(len(found) == 1)57 self.assertTrue(len(found) == 1)
5858
=== modified file 'nova/tests/objectstore_unittest.py'
--- nova/tests/objectstore_unittest.py 2011-02-23 19:56:37 +0000
+++ nova/tests/objectstore_unittest.py 2011-03-18 13:59:32 +0000
@@ -179,7 +179,7 @@
179class TestHTTPChannel(http.HTTPChannel):179class TestHTTPChannel(http.HTTPChannel):
180 """Dummy site required for twisted.web"""180 """Dummy site required for twisted.web"""
181181
182 def checkPersistence(self, _, __): # pylint: disable-msg=C0103182 def checkPersistence(self, _, __): # pylint: disable=C0103
183 """Otherwise we end up with an unclean reactor."""183 """Otherwise we end up with an unclean reactor."""
184 return False184 return False
185185
@@ -209,10 +209,10 @@
209209
210 root = S3()210 root = S3()
211 self.site = TestSite(root)211 self.site = TestSite(root)
212 # pylint: disable-msg=E1101212 # pylint: disable=E1101
213 self.listening_port = reactor.listenTCP(0, self.site,213 self.listening_port = reactor.listenTCP(0, self.site,
214 interface='127.0.0.1')214 interface='127.0.0.1')
215 # pylint: enable-msg=E1101215 # pylint: enable=E1101
216 self.tcp_port = self.listening_port.getHost().port216 self.tcp_port = self.listening_port.getHost().port
217217
218 if not boto.config.has_section('Boto'):218 if not boto.config.has_section('Boto'):
@@ -231,11 +231,11 @@
231231
232 self.conn.get_http_connection = get_http_connection232 self.conn.get_http_connection = get_http_connection
233233
234 def _ensure_no_buckets(self, buckets): # pylint: disable-msg=C0111234 def _ensure_no_buckets(self, buckets): # pylint: disable=C0111
235 self.assertEquals(len(buckets), 0, "Bucket list was not empty")235 self.assertEquals(len(buckets), 0, "Bucket list was not empty")
236 return True236 return True
237237
238 def _ensure_one_bucket(self, buckets, name): # pylint: disable-msg=C0111238 def _ensure_one_bucket(self, buckets, name): # pylint: disable=C0111
239 self.assertEquals(len(buckets), 1,239 self.assertEquals(len(buckets), 1,
240 "Bucket list didn't have exactly one element in it")240 "Bucket list didn't have exactly one element in it")
241 self.assertEquals(buckets[0].name, name, "Wrong name")241 self.assertEquals(buckets[0].name, name, "Wrong name")
242242
=== modified file 'nova/tests/test_api.py'
--- nova/tests/test_api.py 2011-02-21 20:41:15 +0000
+++ nova/tests/test_api.py 2011-03-18 13:59:32 +0000
@@ -124,7 +124,7 @@
124 self.mox.StubOutWithMock(self.ec2, 'new_http_connection')124 self.mox.StubOutWithMock(self.ec2, 'new_http_connection')
125 self.http = FakeHttplibConnection(125 self.http = FakeHttplibConnection(
126 self.app, '%s:8773' % (self.host), False)126 self.app, '%s:8773' % (self.host), False)
127 # pylint: disable-msg=E1103127 # pylint: disable=E1103
128 self.ec2.new_http_connection(host, is_secure).AndReturn(self.http)128 self.ec2.new_http_connection(host, is_secure).AndReturn(self.http)
129 return self.http129 return self.http
130130
131131
=== modified file 'nova/tests/test_middleware.py'
--- nova/tests/test_middleware.py 2011-01-15 01:48:48 +0000
+++ nova/tests/test_middleware.py 2011-03-18 13:59:32 +0000
@@ -40,12 +40,12 @@
4040
41class LockoutTestCase(test.TestCase):41class LockoutTestCase(test.TestCase):
42 """Test case for the Lockout middleware."""42 """Test case for the Lockout middleware."""
43 def setUp(self): # pylint: disable-msg=C010343 def setUp(self): # pylint: disable=C0103
44 super(LockoutTestCase, self).setUp()44 super(LockoutTestCase, self).setUp()
45 utils.set_time_override()45 utils.set_time_override()
46 self.lockout = ec2.Lockout(conditional_forbid)46 self.lockout = ec2.Lockout(conditional_forbid)
4747
48 def tearDown(self): # pylint: disable-msg=C010348 def tearDown(self): # pylint: disable=C0103
49 utils.clear_time_override()49 utils.clear_time_override()
50 super(LockoutTestCase, self).tearDown()50 super(LockoutTestCase, self).tearDown()
5151
5252
=== modified file 'po/nova.pot'
--- po/nova.pot 2011-02-22 04:36:17 +0000
+++ po/nova.pot 2011-03-18 13:59:32 +0000
@@ -300,7 +300,7 @@
300msgid "instance %s: starting..."300msgid "instance %s: starting..."
301msgstr ""301msgstr ""
302302
303#. pylint: disable-msg=W0702303#. pylint: disable=W0702
304#: ../nova/compute/manager.py:219304#: ../nova/compute/manager.py:219
305#, python-format305#, python-format
306msgid "instance %s: Failed to spawn"306msgid "instance %s: Failed to spawn"
@@ -440,7 +440,7 @@
440"instance %(instance_id)s: attaching volume %(volume_id)s to %(mountpoint)s"440"instance %(instance_id)s: attaching volume %(volume_id)s to %(mountpoint)s"
441msgstr ""441msgstr ""
442442
443#. pylint: disable-msg=W0702443#. pylint: disable=W0702
444#. NOTE(vish): The inline callback eats the exception info so we444#. NOTE(vish): The inline callback eats the exception info so we
445#. log the traceback here and reraise the same445#. log the traceback here and reraise the same
446#. ecxception below.446#. ecxception below.
@@ -591,7 +591,7 @@
591msgid "Starting Bridge interface for %s"591msgid "Starting Bridge interface for %s"
592msgstr ""592msgstr ""
593593
594#. pylint: disable-msg=W0703594#. pylint: disable=W0703
595#: ../nova/network/linux_net.py:314595#: ../nova/network/linux_net.py:314
596#, python-format596#, python-format
597msgid "Hupping dnsmasq threw %s"597msgid "Hupping dnsmasq threw %s"
@@ -602,7 +602,7 @@
602msgid "Pid %d is stale, relaunching dnsmasq"602msgid "Pid %d is stale, relaunching dnsmasq"
603msgstr ""603msgstr ""
604604
605#. pylint: disable-msg=W0703605#. pylint: disable=W0703
606#: ../nova/network/linux_net.py:358606#: ../nova/network/linux_net.py:358
607#, python-format607#, python-format
608msgid "killing radvd threw %s"608msgid "killing radvd threw %s"
@@ -613,7 +613,7 @@
613msgid "Pid %d is stale, relaunching radvd"613msgid "Pid %d is stale, relaunching radvd"
614msgstr ""614msgstr ""
615615
616#. pylint: disable-msg=W0703616#. pylint: disable=W0703
617#: ../nova/network/linux_net.py:449617#: ../nova/network/linux_net.py:449
618#, python-format618#, python-format
619msgid "Killing dnsmasq threw %s"619msgid "Killing dnsmasq threw %s"
620620
=== modified file 'tools/euca-get-ajax-console'
--- tools/euca-get-ajax-console 2011-02-26 18:09:57 +0000
+++ tools/euca-get-ajax-console 2011-03-18 13:59:32 +0000
@@ -1,5 +1,5 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# pylint: disable-msg=C01032# pylint: disable=C0103
3# vim: tabstop=4 shiftwidth=4 softtabstop=43# vim: tabstop=4 shiftwidth=4 softtabstop=4
44
5# Copyright 2010 United States Government as represented by the5# Copyright 2010 United States Government as represented by the