1112 if inst and isidentifier(inst) and inst not in SINGLETONS: |
1112 if inst and isidentifier(inst) and inst not in SINGLETONS: |
1113 return # Allow comparison for types which are not obvious |
1113 return # Allow comparison for types which are not obvious |
1114 yield match.start(), "E721" |
1114 yield match.start(), "E721" |
1115 |
1115 |
1116 |
1116 |
|
1117 def python_3000_has_key(logical_line): |
1117 r""" |
1118 r""" |
1118 The {}.has_key() method is removed in the Python 3. |
1119 The {}.has_key() method is removed in the Python 3. |
1119 Use the 'in' operation instead. |
1120 Use the 'in' operation instead. |
1120 |
1121 |
1121 Okay: if "alph" in d:\n print d["alph"] |
1122 Okay: if "alph" in d:\n print d["alph"] |