Commits

Benoît Allard  committed 71f430a

Don't break for old versions of the b extension

  • Participants
  • Parent commits 9bc0c78

Comments (0)

Files changed (1)

     bversionfunc = getattr(b, 'version')
     if bversionfunc is None:
         return None
+    if isinstance(bversionfunc, type('')):
+        # in version 0.6.0, ``b.version`` is a string
+        return None
     if bversionfunc() < bversionfunc('0.6.2'):
         return None
     return b