From: Zac Medico Date: Sat, 3 Mar 2007 08:32:20 +0000 (-0000) Subject: Fix types.InstanceType test which is failing now for some reason. (trunk r6136:6137) X-Git-Tag: v2.1.2.1~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6800c084eebcfcb11ac84290baa63a299789b832;p=portage.git Fix types.InstanceType test which is failing now for some reason. (trunk r6136:6137) svn path=/main/branches/2.1.2/; revision=6140 --- 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[:]