mirror of
https://github.com/vale981/releases
synced 2025-03-04 17:21:43 -05:00
Not a fan of implicit tuples
This commit is contained in:
parent
3fea44a0e6
commit
c8a0d66a61
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue