Disable click >= 5.0's unicode_literals warnings.

main
Selwin Ong 10 years ago
parent f09be523dd
commit e6a15c57b3

@ -24,6 +24,12 @@ from .helpers import (get_redis_from_config, read_config_file, refresh,
show_workers)
# Disable the warning that Click displays (as of Click version 5.0) when users
# use unicode_literals in Python 2.
# See http://click.pocoo.org/dev/python3/#unicode-literals for more details.
click.disable_unicode_literals_warning = True
url_option = click.option('--url', '-u', envvar='RQ_REDIS_URL',
help='URL describing Redis connection details.')

Loading…
Cancel
Save