[Beignet] [PATCH] Allow building tests with Python 3 (no string.atoi)
Yang, Rong R
rong.r.yang at intel.com
Wed Sep 28 08:23:04 UTC 2016
LGTM, pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Rebecca N. Palmer
> Sent: Monday, September 26, 2016 1:07
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] [PATCH] Allow building tests with Python 3 (no string.atoi)
>
> 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
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list