mirror of
https://github.com/certbot/certbot.git
synced 2026-04-12 20:48:14 -04:00
Give lambda parameter a more useful name
This commit is contained in:
parent
3fe5d9c3e0
commit
a69ad2afa8
1 changed files with 2 additions and 2 deletions
|
|
@ -105,9 +105,9 @@ def skipUnless(condition, reason):
|
|||
if hasattr(unittest, "skipUnless"):
|
||||
return unittest.skipUnless(condition, reason)
|
||||
elif condition:
|
||||
return lambda x: x
|
||||
return lambda cls: cls
|
||||
else:
|
||||
return lambda x: None
|
||||
return lambda cls: None
|
||||
|
||||
|
||||
@skipUnless(psutil_available(), "optional dependency psutil is not available")
|
||||
|
|
|
|||
Loading…
Reference in a new issue