some python3 related fixes

This commit is contained in:
holger krekel
2010-11-07 01:10:15 +01:00
parent 8716b391c7
commit d9ad2e7cce
6 changed files with 27 additions and 6 deletions

View File

@@ -437,7 +437,7 @@ class Collection(FSCollector):
def _tryconvertpyarg(self, x):
try:
mod = __import__(x, None, None, ['__doc__'])
except ImportError:
except (ValueError, ImportError):
return x
p = py.path.local(mod.__file__)
if p.purebasename == "__init__":