stdout=subprocess.PIPE, \r
stderr= subprocess.PIPE,\r
shell=True)\r
- except Exception, X:\r
+ except Exception as X:\r
EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, ExtraData=str(X))\r
(out, error) = PopenObject.communicate()\r
print out\r