ae1654bc59
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 |
||
---|---|---|
.. | ||
filters | ||
__init__.py | ||
api.py | ||
chance.py | ||
distributed_scheduler.py | ||
driver.py | ||
least_cost.py | ||
manager.py | ||
multi.py | ||
scheduler_options.py | ||
simple.py | ||
vsa.py | ||
zone_manager.py |