Skip to content
Snippets Groups Projects
Commit 93cc6f4a authored by Richard Berger's avatar Richard Berger
Browse files

Use in syntax for key lookup for Python 3 compatibility

parent 6a1f7e61
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class LAMMPSLJCutPotential(object):
'NULL': (0.0,1.0, 0.0, 0.0,0.0,0.0)}}
def map_coeff(self,name,type):
if self.coeff.has_key(name):
if name in self.coeff:
self.pmap[type] = name
else:
raise Exception("cannot match atom type %s" % name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment