nova/nova/scheduler
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
..
filters Add auto-reloading JSON config file support to scheduler. 2011-11-04 04:41:50 -07:00
__init__.py Created the filters directory in nova/scheduler 2011-08-12 13:58:26 -05:00
api.py Make reroute_compute use functools.wraps. Fixes LP bug #906945. 2011-12-21 13:47:52 -05:00
chance.py Fix scheduler error handler 2011-12-15 20:54:48 -08:00
distributed_scheduler.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00
driver.py Fix scheduler error handler 2011-12-15 20:54:48 -08:00
least_cost.py Add auto-reloading JSON config file support to scheduler. 2011-11-04 04:41:50 -07:00
manager.py Fix scheduler error handler 2011-12-15 20:54:48 -08:00
multi.py Implement schedule_prep_resize() 2011-11-18 17:35:43 +00:00
scheduler_options.py Add auto-reloading JSON config file support to scheduler. 2011-11-04 04:41:50 -07:00
simple.py Clarify NoValidHost messages 2011-12-20 16:34:40 -08:00
vsa.py Exception cleanup in scheduler 2011-11-08 09:21:03 -08:00
zone_manager.py PEP8 remove direct type comparisons 2012-01-03 11:12:42 +08:00