Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.5
-
None
-
None
-
Ambari:Ambari-2.7.5
OS: OpenEuler-22.03
Python: Python 3.9.9
Description
In Ambari 2.7.5, it use a module call "Subprocess32".
When I try to adapt Ambari from python2 to python3, I found that subprocess is a build-in module in python3. And in my opinion Ambari 2.7.5 import Subprocess32 in order to using the same function as python3's module subprocess.
So I would like to change all "import Subprocess32" to "import subprocess" and check whether ambari can still work.
The problem is that I am not sure Subprocess32 defined in Ambari 2.7.5 is actuually the same as python3.subprocess, Any suggestions? Welcome to discuss here and contribute to python3 adaption。