From b9e5e7fe4f721a1705b02fc16e891a451ac298a2 Mon Sep 17 00:00:00 2001 From: Piet Delport Date: Mon, 4 Jan 2016 15:58:50 +0200 Subject: Mark guarded "unicode" reference with noqa --- tox/_quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox/_quickstart.py b/tox/_quickstart.py index a397cb1..59ee48e 100644 --- a/tox/_quickstart.py +++ b/tox/_quickstart.py @@ -119,7 +119,7 @@ def do_prompt(d, key, text, default=None, validator=nonempty): x = term_input(prompt) if default and not x: x = default - if sys.version_info < (3, ) and not isinstance(x, unicode): + if sys.version_info < (3, ) and not isinstance(x, unicode): # noqa # for Python 2.x, try to get a Unicode string out of it if x.decode('ascii', 'replace').encode('ascii', 'replace') != x: if TERM_ENCODING: -- cgit v1.2.1