From e6a15c57b3aec2461bbffd9b5c80cab16e23101b Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Mon, 24 Aug 2015 08:20:36 +0700 Subject: [PATCH] Disable click >= 5.0's unicode_literals warnings. --- rq/cli/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rq/cli/cli.py b/rq/cli/cli.py index da156d3..8bb79de 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -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.')