diff options
author | Rebecca N. Palmer <rebecca_palmer@zoho.com> | 2016-09-25 18:07:25 +0100 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-10-21 12:40:09 +0800 |
commit | 8852d0f8b6a94f7466b278baae0493bd38eadfc3 (patch) | |
tree | f5b807a2721677a19738ef0e104c342b2f81558c | |
parent | 1eab14249cf38f2ae614a5f243adda3d7b8e0f0d (diff) |
Allow building tests with Python 3 (no string.atoi)
Signed-off-by: Rebecca Palmer <rebecca_palmer@zoho.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r-- | utests/utest_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_generator.py b/utests/utest_generator.py index d66788cc..f8fe35ea 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 @@ which can print more values and information to assist debuging the issue. 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 |