mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
Merge pull request #1086 from tahoe-lafs/3739.annoying-warning-python-2
Get rid of annoying warning in CLI tools Fixes ticket:3739
This commit is contained in:
commit
f39eeb4741
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…
x
Reference in New Issue
Block a user