summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/template.py')
-rw-r--r--pym/portage/cache/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/template.py b/pym/portage/cache/template.py
index 7fce8ef17..e78216338 100644
--- a/pym/portage/cache/template.py
+++ b/pym/portage/cache/template.py
@@ -169,7 +169,7 @@ class database(object):
for key,match in match_dict.iteritems():
# XXX this sucks.
try:
- if isinstance(match, str):
+ if isinstance(match, basestring):
restricts[key] = re.compile(match).match
else:
restricts[key] = re.compile(match[0],match[1]).match