[v2] zdtm: fix a lint warning about undefined 'raw_input'

Submitted by Andrey Vagin on June 13, 2018, 5:10 p.m.

Details

Message ID 20180613171019.16068-1-avagin@virtuozzo.com
State New
Series "zdtm: fix a lint warning about undefined 'raw_input'"
Headers show

Commit Message

Andrey Vagin June 13, 2018, 5:10 p.m.
test/zdtm.py:1238:3: F821 undefined name 'raw_input'

v2: ask to press enter, not just any key
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 test/zdtm.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index 1e193b2f9..64046576c 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1,7 +1,7 @@ 
 #!/usr/bin/env python
 # vim: noet ts=8 sw=8 sts=8
 from __future__ import absolute_import, division, print_function, unicode_literals
-from builtins import (str, open, range, zip, int)
+from builtins import (str, open, range, zip, int, input)
 
 import argparse
 import glob
@@ -1235,7 +1235,7 @@  def init_sbs():
 
 def sbs(what):
 	if do_sbs:
-		raw_input("Pause at %s. Press any key to continue." % what)
+		input("Pause at %s. Press any key to continue." % what)
 
 
 #

Comments

Andrey Vagin June 13, 2018, 5:45 p.m.
Pls ignore this patch.

On Wed, Jun 13, 2018 at 08:10:19PM +0300, Andrei Vagin wrote:
> test/zdtm.py:1238:3: F821 undefined name 'raw_input'
> 
> v2: ask to press enter, not just any key
> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
> ---
>  test/zdtm.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/test/zdtm.py b/test/zdtm.py
> index 1e193b2f9..64046576c 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -1,7 +1,7 @@
>  #!/usr/bin/env python
>  # vim: noet ts=8 sw=8 sts=8
>  from __future__ import absolute_import, division, print_function, unicode_literals
> -from builtins import (str, open, range, zip, int)
> +from builtins import (str, open, range, zip, int, input)
>  
>  import argparse
>  import glob
> @@ -1235,7 +1235,7 @@ def init_sbs():
>  
>  def sbs(what):
>  	if do_sbs:
> -		raw_input("Pause at %s. Press any key to continue." % what)
> +		input("Pause at %s. Press any key to continue." % what)
>  
>  
>  #
> -- 
> 2.14.3
>