1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

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__':