[Beignet] [PATCH] Allow building tests with Python 3 (no string.atoi)

Rebecca N. Palmer rebecca_palmer at zoho.com
Sun Sep 25 17:07:25 UTC 2016


Signed-off-by: Rebecca Palmer <rebecca_palmer at zoho.com>

diff --git a/utests/utest_generator.py b/utests/utest_generator.py
index d66788c..f8fe35e 100644
--- a/utests/utest_generator.py
+++ b/utests/utest_generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python
  from __future__ import print_function
  import os,sys,re,string

@@ -247,7 +247,7 @@
    def argvector(self,paraN,index):
      vector=re.findall(r"[0-9]+",self.inputtype[paraN][index])
      if vector:
-      vector=string.atoi(vector[0])
+      vector=int(vector[0])
      else:
        vector=1
      return vector



More information about the Beignet mailing list