diff options
Diffstat (limited to 'pym/portage/dep/__init__.py')
-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'") \ |