Plugins/CheckerPlugins/Pep8/pep8.py

changeset 2866
c77e08c38a5c
parent 2864
d973dab8b715
child 2899
88d2458a4739
child 2911
ce77f0b1ee67
equal deleted inserted replaced
2864:d973dab8b715 2866:c77e08c38a5c
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"]

eric ide

mercurial