document non-obvious string check

This commit is contained in:
Andy Clayton 2018-08-16 15:46:50 -05:00
parent 36018d19ae
commit 036c4fc9b3

View file

@ -64,6 +64,7 @@ def create_fake_client(response_type, is_public=False, require_consent=True):
client.save()
# check if response_type is a string in a python 2 and 3 compatible way
if isinstance(response_type, ("".__class__, u"".__class__)):
response_type = (response_type,)
for value in response_type: