nova/nova/api
lzyeval ae1654bc59 PEP8 remove direct type comparisons
Fixes bug #910763

According to PEP8,
- Object type comparisons should always use isinstance() instead
      of comparing types directly.

        Yes: if isinstance(obj, int):

        No: if type(obj) is type(1):

      When checking if an object is a string, keep in mind that it might be a
      unicode string too! In Python 2.3, str and unicode have a common base
      class, basestring, so you can do:

        if isinstance(obj, basestring):

Change-Id: I7c0fdecf99872f5b8f72b2c2ed4f5c539c33def1
2012-01-03 11:12:42 +08:00
..
ec2 PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
metadata Add a DECLARE for dhcp_doamin flag to metadata handler. 2011-12-26 16:49:45 -05:00
openstack PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
__init__.py Removed newly added userdatarequesthandler for OS API, there is no need to add this handler since the existing Ec2 API metadatarequesthandler does the same job 2011-08-15 15:09:42 -07:00
auth.py Cleaning up imports in nova.api 2011-12-21 13:50:04 -05:00
direct.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
manager.py Separate metadata api into its own service 2011-11-15 13:27:58 -08:00