Get rid of annoying warning.
This commit is contained in:
parent
95a7bfe57a
commit
3461665ccf
|
@ -0,0 +1 @@
|
||||||
|
Fixed annoying UnicodeWarning message on Python 2 when running CLI tools.
|
|
@ -204,7 +204,8 @@ def _setup_coverage(reactor):
|
||||||
"""
|
"""
|
||||||
# can we put this _setup_coverage call after we hit
|
# can we put this _setup_coverage call after we hit
|
||||||
# argument-parsing?
|
# argument-parsing?
|
||||||
if '--coverage' not in sys.argv:
|
# ensure_str() only necessary on Python 2.
|
||||||
|
if six.ensure_str('--coverage') not in sys.argv:
|
||||||
return
|
return
|
||||||
sys.argv.remove('--coverage')
|
sys.argv.remove('--coverage')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue