Commit 93cc6f4a authored by Richard Berger's avatar Richard Berger
Browse files

Use in syntax for key lookup for Python 3 compatibility

parent 6a1f7e61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)