Commit b9118b0
committed
[gyb] check isinstance(result, basestring) before string comparison
Guard against types that override __eq__ and do things like
raise TypeError when the types being compared don't match.1 parent c98e515 commit b9118b0
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
716 | 721 | | |
717 | 722 | | |
718 | 723 | | |
719 | | - | |
| 724 | + | |
| 725 | + | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
| |||
0 commit comments