mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02: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):
|
def gen_auth_resp(chall_list):
|
||||||
"""Generate a dummy authorization response."""
|
"""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]
|
for chall in chall_list]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class CleanupTest(unittest.TestCase):
|
|||||||
|
|
||||||
def gen_client_resp(chall):
|
def gen_client_resp(chall):
|
||||||
"""Generate a dummy response."""
|
"""Generate a dummy response."""
|
||||||
return "%s%s" % (type(chall).__name__, chall.domain)
|
return "%s%s" % (chall.__class__.__name__, chall.domain)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user