Mercurial > ~astiob > upreckon > hgweb
changeset 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 | 93978361c67f |
children | 24f144e11b5e |
files | config.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
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