diff options
-rw-r--r-- | pym/portage/proxy/lazyimport.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/proxy/lazyimport.py b/pym/portage/proxy/lazyimport.py index d878b7adc..ad4a54271 100644 --- a/pym/portage/proxy/lazyimport.py +++ b/pym/portage/proxy/lazyimport.py @@ -189,6 +189,9 @@ def lazyimport(scope, *args): already_imported = modules.get(name) fromlist = fromlist.split(',') for s in fromlist: + if not s: + # This happens if there's an extra comma in fromlist. + raise ValueError('Empty module attribute name') alias = s.split('@', 1) if len(alias) == 1: alias = alias[0] |