Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcumul0529 <gg6123@naver.com>2020-02-23 23:30:54 +0300
committercumul0529 <gg6123@naver.com>2020-02-23 23:30:54 +0300
commit5b29e4616c4a7bae3ba18b0eca8ae245afbf97f1 (patch)
tree329e56d804883cf103a92d0cbcdb098dfc667333
parent32904d8c9e2c1c6dd253eb860472053053238238 (diff)
Add simple comments
-rw-r--r--certbot-nginx/tests/test_log_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/certbot-nginx/tests/test_log_util.py b/certbot-nginx/tests/test_log_util.py
index f8135ca26..7aebf2151 100644
--- a/certbot-nginx/tests/test_log_util.py
+++ b/certbot-nginx/tests/test_log_util.py
@@ -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)