[Python-modules-commits] [python-click-log] 01/05: Import python-click-log_0.2.1.orig.tar.gz
Filip Pytloun
fpytloun-guest at moszumanska.debian.org
Mon Dec 11 16:33:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
fpytloun-guest pushed a commit to branch master
in repository python-click-log.
commit fa168cb0f6d77277ddaded92ec94e58e6b097126
Author: Filip Pytloun <filip at pytloun.cz>
Date: Mon Dec 11 17:27:41 2017 +0100
Import python-click-log_0.2.1.orig.tar.gz
---
click_log/__init__.py | 2 +-
click_log/core.py | 7 ++-----
click_log/options.py | 2 +-
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/click_log/__init__.py b/click_log/__init__.py
index db884dc..297ea65 100644
--- a/click_log/__init__.py
+++ b/click_log/__init__.py
@@ -3,7 +3,7 @@
import click
-__version__ = '0.2.0'
+__version__ = '0.2.1'
if not hasattr(click, 'get_current_context'):
diff --git a/click_log/core.py b/click_log/core.py
index ed80376..d51bd72 100644
--- a/click_log/core.py
+++ b/click_log/core.py
@@ -1,10 +1,7 @@
# -*- coding: utf-8 -*-
-import sys
-
-import collections
-import functools
import logging
+import sys
import click
@@ -61,7 +58,7 @@ class ClickHandler(logging.Handler):
click.echo(msg, err=err)
except (KeyboardInterrupt, SystemExit):
raise
- except:
+ except Exception:
self.handleError(record)
diff --git a/click_log/options.py b/click_log/options.py
index 01fcb3b..1295ec1 100644
--- a/click_log/options.py
+++ b/click_log/options.py
@@ -4,7 +4,7 @@ import click
from .core import _normalize_logger
-def simple_verbosity_option(logger, *names, **kwargs):
+def simple_verbosity_option(logger=None, *names, **kwargs):
'''A decorator that adds a `--verbosity, -v` option to the decorated
command.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-click-log.git
More information about the Python-modules-commits
mailing list