mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add simple comments
This commit is contained in:
parent
32904d8c9e
commit
5b29e4616c
1 changed files with 2 additions and 0 deletions
|
|
@ -46,8 +46,10 @@ class AssertLogsContext(object):
|
|||
if level:
|
||||
# pylint: disable=protected-access,no-member
|
||||
try:
|
||||
# In Python 3.x
|
||||
name_to_level = logging._nameToLevel # type: ignore
|
||||
except AttributeError:
|
||||
# In Python 2.7
|
||||
name_to_level = logging._levelNames # type: ignore
|
||||
|
||||
self.level = name_to_level.get(level, level)
|
||||
|
|
|
|||
Loading…
Reference in a new issue