mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
Get rid of annoying warning.
This commit is contained in:
parent
95a7bfe57a
commit
3461665ccf
1
newsfragments/3739.bugfix
Normal file
1
newsfragments/3739.bugfix
Normal file
@ -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
|
||||
# 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
|
||||
sys.argv.remove('--coverage')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user