diff config.py @ 60:7c6dba0b84f2

Restored support for iterable keys in the pointmap configuration variable
author Oleg Oshmyan <chortos@inbox.lv>
date Tue, 21 Dec 2010 03:08:04 +0200
parents 4ea7133ac25c
children b9d5857f7b9a
line wrap: on
line diff
--- a/config.py	Tue Dec 21 03:05:04 2010 +0200
+++ b/config.py	Tue Dec 21 03:08:04 2010 +0200
@@ -137,6 +137,14 @@
 			module.path = os.path.join(os.path.curdir, problem_name)
 		else:
 			module.path = problem_name
+	newpointmap = {}
+	for key in module.pointmap:
+		try:
+			for k in key:
+				newpointmap[k] = module.pointmap[key]
+		except TypeError:
+			newpointmap[key] = module.pointmap[key]
+	module.pointmap = newpointmap
 	if options.no_maxtime:
 		module.maxtime = 0
 	sys.dont_write_bytecode = dwb