Remove type()

This commit is contained in:
Jakub Warmuz 2015-02-02 20:35:04 +00:00 committed by James Kasten
parent a773c264c0
commit bdabdb519f
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ class PathSatisfiedTest(unittest.TestCase):
def gen_auth_resp(chall_list):
"""Generate a dummy authorization response."""
return ["%s%s" % (type(chall).__name__, chall.domain)
return ["%s%s" % (chall.__class__.__name__, chall.domain)
for chall in chall_list]

View file

@ -72,7 +72,7 @@ class CleanupTest(unittest.TestCase):
def gen_client_resp(chall):
"""Generate a dummy response."""
return "%s%s" % (type(chall).__name__, chall.domain)
return "%s%s" % (chall.__class__.__name__, chall.domain)
if __name__ == '__main__':