From c8a0d66a61a020087106bd071f0bb660d8c5110b Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Tue, 1 May 2018 14:07:21 -0700 Subject: [PATCH] Not a fan of implicit tuples --- releases/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/__init__.py b/releases/__init__.py index 35166bc..805a253 100644 --- a/releases/__init__.py +++ b/releases/__init__.py @@ -636,9 +636,9 @@ def setup(app): # https://stackoverflow.com/questions/1303243/how-to-find-out-if-a-python-object-is-a-string PY2 = sys.version_info[0] == 2 if PY2: - string_types = basestring, + string_types = (basestring,) else: - string_types = str, + string_types = (str,) if isinstance(app.config.releases_document_name, string_types): app.config.releases_document_name = [app.config.releases_document_name]