mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Again, drop recursive loop for StreamHandler py26
This commit is contained in:
parent
9427c474ab
commit
8788f956a7
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ class StreamHandler(logging.StreamHandler):
|
|||
:rtype: str
|
||||
|
||||
"""
|
||||
out = (StreamHandler.format(self, record) if sys.version_info < (2, 7)
|
||||
out = (logging.StreamHandler.format(self, record)
|
||||
if sys.version_info < (2, 7)
|
||||
else super(StreamHandler, self).format(record))
|
||||
if self.colored and record.levelno >= self.red_level:
|
||||
return ''.join((le_util.ANSI_SGR_RED, out, le_util.ANSI_SGR_RESET))
|
||||
|
|
|
|||
Loading…
Reference in a new issue