Commit add46d9
committed
Use "is" to compare __class__
Since the value of __class__ is a type, comparing it to another
type object should use "is" rather than "==".
Some of these, involving type(), were fixed in bf7af69, but flake8
did not catch the .__class__ variation addressed here.1 parent 59d208c commit add46d9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
| 800 | + | |
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| |||
0 commit comments