PEP8 swift cleanup

Bug #911579 reported by Zhongyue Luo on 2012-01-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Zhongyue Luo

Bug Description

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance() instead of comparing types directly.

Zhongyue Luo (zyluo) on 2012-01-04
Changed in swift:
assignee: nobody → LZY (lzyeval)
Zhongyue Luo (zyluo) wrote :
Changed in swift:
status: New → Fix Committed
Thierry Carrez (ttx) on 2012-02-09
Changed in swift:
milestone: none → 1.4.6
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers