mirror of
https://github.com/certbot/certbot.git
synced 2026-01-23 07:20:55 +03:00
Remove type()
This commit is contained in:
committed by
James Kasten
parent
a773c264c0
commit
bdabdb519f
@@ -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]
|
||||
|
||||
|
||||
|
||||
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user