From: Zac Medico Date: Sat, 3 Mar 2007 01:53:18 +0000 (-0000) Subject: Fix types.InstanceType test which is failing now for some reason. X-Git-Tag: v2.2_pre1~1623 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68d46429aa4091671158538db40eeaa172c53db1;p=portage.git Fix types.InstanceType test which is failing now for some reason. svn path=/main/trunk/; revision=6137 --- 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[:]