diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-11-06 15:48:40 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-11-23 18:00:11 -0800 |
commit | f0456c0c69903e8edc0a9338e194eecc097d6e52 (patch) | |
tree | 4bcc7a114663992c7f608226b329e102e5df38fb /pym | |
parent | 0cea881a4287c2b213e3bb1d40b93045c04e2853 (diff) | |
download | portage-f0456c0c69903e8edc0a9338e194eecc097d6e52.tar.gz portage-f0456c0c69903e8edc0a9338e194eecc097d6e52.tar.bz2 portage-f0456c0c69903e8edc0a9338e194eecc097d6e52.zip |
Atom: require string type for eapi
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dep/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 58fded47a..7ff54f6f7 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -1138,6 +1138,9 @@ class Atom(_atom_base): self.__dict__['unevaluated_atom'] = self if eapi is not None: + if not isinstance(eapi, basestring): + raise TypeError('expected eapi argument of ' + \ + '%s, got %s: %s' % (basestring, type(eapi), eapi,)) if self.slot and not eapi_has_slot_deps(eapi): raise InvalidAtom( _("Slot deps are not allowed in EAPI %s: '%s'") \ |