[diffoscope] 04/05: Use more Pythonic `old_level` variable name (over `oldLabel`).

Chris Lamb chris at chris-lamb.co.uk
Sat Mar 3 23:45:51 CET 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit e37c62908ea408ca8c841d2557e987057e188e62
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Mar 3 22:35:10 2018 +0000

    Use more Pythonic `old_level` variable name (over `oldLabel`).
---
 diffoscope/logging.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/logging.py b/diffoscope/logging.py
index 3668aa3..35adc8c 100644
--- a/diffoscope/logging.py
+++ b/diffoscope/logging.py
@@ -24,7 +24,7 @@ import logging
 @contextlib.contextmanager
 def setup_logging(debug, log_handler):
     logger = logging.getLogger()
-    oldLevel = logger.getEffectiveLevel()
+    old_level = logger.getEffectiveLevel()
     logger.setLevel(logging.DEBUG if debug else logging.WARNING)
 
     ch = log_handler or logging.StreamHandler()
@@ -43,4 +43,4 @@ def setup_logging(debug, log_handler):
         # like "ValueError: I/O operation on closed file", see
         # https://github.com/pytest-dev/pytest/issues/14#issuecomment-272243656
         logger.removeHandler(ch)
-        logger.setLevel(oldLevel)
+        logger.setLevel(old_level)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list