Files
python-ganttclient/nova/auth
lzyeval 38b630a93a 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
..
2011-07-28 13:50:06 -05:00
2011-11-09 19:57:44 -08:00
2011-08-04 11:40:07 -07:00
2011-09-29 13:39:59 +01:00