comparison 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
comparison
equal deleted inserted replaced
59:93978361c67f 60:7c6dba0b84f2
135 module.path = module.name 135 module.path = module.name
136 elif sys.platform != 'win32': 136 elif sys.platform != 'win32':
137 module.path = os.path.join(os.path.curdir, problem_name) 137 module.path = os.path.join(os.path.curdir, problem_name)
138 else: 138 else:
139 module.path = problem_name 139 module.path = problem_name
140 newpointmap = {}
141 for key in module.pointmap:
142 try:
143 for k in key:
144 newpointmap[k] = module.pointmap[key]
145 except TypeError:
146 newpointmap[key] = module.pointmap[key]
147 module.pointmap = newpointmap
140 if options.no_maxtime: 148 if options.no_maxtime:
141 module.maxtime = 0 149 module.maxtime = 0
142 sys.dont_write_bytecode = dwb 150 sys.dont_write_bytecode = dwb
143 for name in patterns: 151 for name in patterns:
144 if hasattr(module, name): 152 if hasattr(module, name):