From 68d46429aa4091671158538db40eeaa172c53db1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 Mar 2007 01:53:18 +0000 Subject: [PATCH] Fix types.InstanceType test which is failing now for some reason. svn path=/main/trunk/; revision=6137 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 1b7cf94bf..f5e00b060 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4358,7 +4358,7 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None): mykey=mycpv if mydb and virts and mykey in virts: writemsg("mydb.__class__: %s\n" % (mydb.__class__), 1) - if type(mydb)==types.InstanceType: + if hasattr(mydb, "cp_list"): if not mydb.cp_list(mykey, use_cache=use_cache): writemsg("virts[%s]: %s\n" % (str(mykey),virts[mykey]), 1) mykey_orig = mykey[:] -- 2.26.2