nova/nova
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
..
CA some cleanup. VSA flag status changes. returned some files 2011-07-25 16:26:23 -07:00
api PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
auth PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
cloudpipe Refactor metadata code out of ec2/cloud.py 2011-11-17 11:10:30 -08:00
common PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
compute re-raising exceptions fix 2011-12-31 02:31:06 +09:00
console Support using server uuids when accessing consoles. 2011-10-26 14:54:11 -04:00
db Adding index to instances project_id column 2011-12-27 17:11:57 -05:00
image Sanitize EC2 manifests and image tarballs 2011-12-13 16:00:41 +01:00
ipv6 Bug #835964: pep8 violations in IPv6 code 2011-08-28 16:17:17 +05:30
network PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
notifier Create notification queues as durable 2011-12-28 19:21:02 +00:00
objectstore Separate metadata api into its own service 2011-11-15 13:27:58 -08:00
rootwrap Bug#898257 support handling images with libguestfs 2011-12-22 11:50:56 +00:00
rpc PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
scheduler PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
testing 'except:' to 'except Exception:' as per HACKING 2011-12-27 12:07:06 -08:00
tests PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
virt PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
vnc Bug #896997: nova-vncproxy's flash socket policy port is not configurable 2011-11-29 19:55:25 -08:00
volume 'except:' to 'except Exception:' as per HACKING 2011-12-27 12:07:06 -08:00
vsa 'except:' to 'except Exception:' as per HACKING 2011-12-27 12:07:06 -08:00
__init__.py Separate metadata api into its own service 2011-11-15 13:27:58 -08:00
block_device.py Refactor metadata code out of ec2/cloud.py 2011-11-17 11:10:30 -08:00
context.py Add ability to see deleted and active records. 2011-12-07 16:06:31 -06:00
crypto.py Specify -t rsa when calling ssh-keygen. 2011-12-18 19:50:34 -08:00
exception.py Clean up pylint errors in top-level files 2011-12-29 14:49:00 -05:00
flags.py Add an API for associating floating IPs with DNS entries. 2011-12-27 15:40:44 -06:00
local.py Add local storage of context for logging 2011-11-02 17:09:49 -07:00
log.py Fix Bug #891718 2011-11-28 14:51:05 +05:30
manager.py Clean up pylint errors in top-level files 2011-12-29 14:49:00 -05:00
quota.py Clean up pylint errors in top-level files 2011-12-29 14:49:00 -05:00
service.py Refactors periodic tasks to use a decorator. 2011-12-07 18:07:08 +00:00
test.py Clean up pylint errors in top-level files 2011-12-29 14:49:00 -05:00
utils.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
version.py Remove some remnants of ChangeLog and vcsversion.py generation 2011-12-06 12:08:43 +00:00
wsgi.py Clean up pylint errors in top-level files 2011-12-29 14:49:00 -05:00