changeset 171:161d78f52cc3 2.01

Fixed crashing on callable values of the tester conf. var.
author Oleg Oshmyan <chortos@inbox.lv>
date Sat, 18 Jun 2011 01:57:35 +0100
parents 8fa35d757cb0
children e56d43b40884
files upreckon/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/upreckon/config.py	Sat Jun 11 20:12:26 2011 +0100
+++ b/upreckon/config.py	Sat Jun 18 01:57:35 2011 +0100
@@ -172,7 +172,7 @@
 	if module.tester:
 		if isinstance(module.tester, basestring):
 			module.tester = nativize_path(module.tester)
-		else:
+		elif not callable(module.tester):
 			tester = tuple(module.tester)
 			module.tester = (nativize_path(tester[0]),) + tester[1:]
 	for name in 'pointmap', 'groupweight':