changeset 74:aea4fc87698a

Minimal code clean-up
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 06 Jan 2011 20:06:42 +0200
parents b071ef77377c
children 007f7eb6fb2b
files config.py problem.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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': {},
--- 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)