From 6800c084eebcfcb11ac84290baa63a299789b832 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 Mar 2007 08:32:20 +0000 Subject: [PATCH] Fix types.InstanceType test which is failing now for some reason. (trunk r6136:6137) svn path=/main/branches/2.1.2/; revision=6140 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 51dc4fd44..e34075437 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4450,7 +4450,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