Mercurial > ~astiob > upreckon > hgweb
diff upreckon/config.py @ 175:35d59ba0e27c
Fixed crashing on callable values of the tester conf. var.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sat, 18 Jun 2011 02:54:05 +0100 |
parents | e0b2fbd7ebe0 |
children | a76cdc26ba9d |
line wrap: on
line diff
--- a/upreckon/config.py Sat Jun 18 02:55:17 2011 +0100 +++ b/upreckon/config.py Sat Jun 18 02:54:05 2011 +0100 @@ -173,7 +173,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':