# HG changeset patch # User Oleg Oshmyan # Date 1294337202 -7200 # Node ID aea4fc87698ac26b44e88e93934aa3c9059d1104 # Parent b071ef77377c81986b7be82cac0ded946e8684fb Minimal code clean-up diff -r b071ef77377c -r aea4fc87698a config.py --- a/config.py Thu Jan 06 19:58:45 2011 +0200 +++ b/config.py Thu Jan 06 20:06:42 2011 +0200 @@ -24,7 +24,8 @@ __all__ = 'load_problem', 'load_global', 'globalconf' -defaults_problem = {'usegroups': False, +defaults_problem = {'kind': 'batch', + 'usegroups': False, 'maxtime': None, 'maxmemory': None, 'dummies': {}, diff -r b071ef77377c -r aea4fc87698a problem.py --- a/problem.py Thu Jan 06 19:58:45 2011 +0200 +++ b/problem.py Thu Jan 06 20:06:42 2011 +0200 @@ -93,7 +93,6 @@ raise TypeError('Problem() argument 1 must be string, not ' + type(name).__name__) prob.name = name prob.config = config.load_problem(name) - if not getattr(prob.config, 'kind', None): prob.config.kind = 'batch' prob.cache = Cache({'padoutput': 0}) prob.testcases = testcases.load_problem(prob)