Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
"NameError: name 'reload' is not defined" on python 3 #50127
Description of Issue/Question
Running Salt under py3 gives a NameError :
"reload" is a Python 2 builtin and not available under Python 3.
modules/ebuild.py:68: portage = reload(portage)
Steps to Reproduce Issue
referenced this issue
Oct 19, 2018
I have been running into this issue myself and I can report that @mgomersbach fix works on my gentoo installation, using python 3.6
However for my installation/version the patch is missing another occasion of
On my test machine I could verify that adapting commit to portage_config.py resolves the issue.
From a quick grep over this repo it seems portage_config.py is the only occasion of reload that is broken.
You are completely right!
Should I squash them together in one PR or leave the test for someone else?