Explorar el Código

Debugging Coloscript2 & PlanetUp

david hace 5 años
padre
commit
917cc2138c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      flexible.py

+ 3 - 2
flexible.py

@@ -2834,9 +2834,10 @@ class ColoScript2(object):
                     line = line[:7] + ' ' + line[8:]
 
                 details, _, citadel = line.partition('Class')
-                log.info(details) # Is that what we are after?
-                log.info(citadel)
+                #log.info(details) # Is that what we are after?
+                #log.info(citadel)
                 sector, planet_number, name = re.split(r'\s*', details.strip(), 2)
+                log.info("sector = '{0}'".format(sector))
                 sector = int(sector)
                 number = int(planet_number.replace('#', ''))
                 if 'Level' in citadel: