From 017e1a5720d08133e8edd325bebe4145ed22add4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Oct 2006 06:39:47 +0000 Subject: [PATCH] Test for basestring instead of types.DictType so that the test more generic. svn path=/main/trunk/; revision=4820 --- pym/cache/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/cache/metadata.py b/pym/cache/metadata.py index a190cb883..df039d5e2 100644 --- a/pym/cache/metadata.py +++ b/pym/cache/metadata.py @@ -66,7 +66,7 @@ class database(flat_hash.database): if "INHERITED" in d: d["_eclasses_"] = self.ec.get_eclass_data(d["INHERITED"].split(), from_master_only=True) del d["INHERITED"] - elif not isinstance(d["_eclasses_"], types.DictType): + elif isinstance(d["_eclasses_"], basestring): # We skip this if flat_hash.database._parse_data() was called above # because it calls reconstruct_eclasses() internally. d["_eclasses_"] = reconstruct_eclasses(None, d["_eclasses_"]) -- 2.26.2