Commit 2846ca7e authored by peastman's avatar peastman
Browse files

Fixed error on Python 2

parent c04e70d9
......@@ -123,7 +123,7 @@ class PDBFile(object):
# Try to guess the element.
upper = atomName.upper()
while len(upper) > 1 and upper[0].isnumeric():
while len(upper) > 1 and upper[0].isdigit():
upper = upper[1:]
if upper.startswith('CL'):
element = elem.chlorine
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment