Sfoglia il codice sorgente

Revert "HUE-8737 [core] Fix tools/app_reg/app_reg.py str issue"

This reverts commit ecfde999dfdaa3e633949a517892a729696d1fba.
Ying Chen 6 anni fa
parent
commit
bc3c7a44d6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tools/app_reg/app_reg.py

+ 1 - 1
tools/app_reg/app_reg.py

@@ -98,7 +98,7 @@ def get_app_info(app_loc):
       LOG.error("Error getting application info from %s:\n%s" % (app_loc, stderr))
       LOG.error("Error getting application info from %s:\n%s" % (app_loc, stderr))
       raise OSError(stderr)
       raise OSError(stderr)
     LOG.debug("Command output:\n<<<\n%s\n>>>" % (stdout,))
     LOG.debug("Command output:\n<<<\n%s\n>>>" % (stdout,))
-    return stdout.decode().split('\n')[:4]
+    return stdout.split('\n')[:4]
   finally:
   finally:
     os.chdir(save_cwd)
     os.chdir(save_cwd)