import sys
from subprocess import Popen, PIPE
cmd = ['uic', '-g', 'python'] + sys.argv[1:]
proc = Popen(cmd, stderr=PIPE, shell=True)
out, err = proc.communicate()
sys.exit(proc.returncode)

@@ -8,12 +8,14 @@
 sys%0A
-from
+import
  sub
@@ -26,26 +26,13 @@
 ess 
-import Popen, PIPE
+as sp
 %0Acmd
@@ -77,19 +77,22 @@
 1:%5D%0A
-proc = Pope
+sys.exit(sp.ru
 n(cm
@@ -100,17 +100,22 @@
 , stderr
-=
+ = sp.
 PIPE, sh
@@ -121,58 +121,16 @@
 hell
-=True)%0Aout, err = proc.communicate()%0Asys.exit(proc
+ = True)
 .ret

simplify pyside2-uic.py