diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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[:] |