Not a fan of implicit tuples

This commit is contained in:
Jeff Forcier 2018-05-01 14:07:21 -07:00
parent 3fea44a0e6
commit c8a0d66a61

View file

@ -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]