@@ -2252,7 +2252,7 @@ class PlanetUpScript(object):
if '#' in line:
# Ok, we have a planet detail line.
# There's an extra T when the planet is maxed out.
- if line[7] = 'T':
+ if line[7] == 'T':
line = line[:7] + ' ' + line[8:]
detail, _, _ = line.partition('Class')