Merge pull request #45186 from rallytime/bp-44922

Back-port #44922 to 2017.7
This commit is contained in:
Nicole Thomas 2017-12-28 14:02:50 -05:00 committed by GitHub
commit 67d97303b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ else:
# Psuedo "from psutil import *"
_globals = globals()
for attr in psutil.__all__:
_temp = __import__('psutil', globals(), locals(), [attr], -1)
_temp = __import__('psutil', globals(), locals(), [attr], -1 if six.PY2 else 0)
try:
_globals[attr] = getattr(_temp, attr)
except AttributeError: