[Python-modules-commits] [python-verboselogs] 09/13: Import python-verboselogs_1.6.orig.tar.gz
Gaurav Juvekar
gauravjuvekar-guest at moszumanska.debian.org
Sun Mar 12 20:12:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
gauravjuvekar-guest pushed a commit to branch master
in repository python-verboselogs.
commit 04ba1b6a726842fb85e0192ace593398271fda7d
Author: Gaurav Juvekar <gauravjuvekar at gmail.com>
Date: Mon Mar 13 01:34:57 2017 +0530
Import python-verboselogs_1.6.orig.tar.gz
---
LICENSE.txt | 2 +-
PKG-INFO | 7 ++++---
README.rst | 4 ++--
setup.cfg | 1 -
setup.py | 3 ++-
verboselogs.egg-info/PKG-INFO | 7 ++++---
verboselogs/__init__.py | 19 +++++++++++--------
verboselogs/tests.py | 4 ++--
8 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/LICENSE.txt b/LICENSE.txt
index c086407..71c0236 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-Copyright (c) 2016 Peter Odding
+Copyright (c) 2017 Peter Odding
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
diff --git a/PKG-INFO b/PKG-INFO
index dd4e212..d81def3 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: verboselogs
-Version: 1.5
+Version: 1.6
Summary: Verbose logging level for Python's logging module
Home-page: https://verboselogs.readthedocs.io
Author: Peter Odding
@@ -24,7 +24,7 @@ Description: verboselogs: Verbose logging level for Python's logging module
The code to do this is simple and short, but I still don't want to copy/paste
it to every project I'm working on, hence this package. It's currently tested
- on Python 2.6, 2.7, 3.4, 3.5 and PyPy.
+ on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy.
.. contents::
:local:
@@ -211,7 +211,7 @@ Description: verboselogs: Verbose logging level for Python's logging module
This software is licensed under the `MIT license`_.
- © 2016 Peter Odding.
+ © 2017 Peter Odding.
.. External references:
.. _descriptions: http://docs.python.org/howto/logging.html#when-to-use-logging
@@ -246,6 +246,7 @@ Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development
diff --git a/README.rst b/README.rst
index ba5970a..90a5d01 100644
--- a/README.rst
+++ b/README.rst
@@ -16,7 +16,7 @@ VERBOSE_, NOTICE_, and SPAM_:
The code to do this is simple and short, but I still don't want to copy/paste
it to every project I'm working on, hence this package. It's currently tested
-on Python 2.6, 2.7, 3.4, 3.5 and PyPy.
+on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy.
.. contents::
:local:
@@ -203,7 +203,7 @@ License
This software is licensed under the `MIT license`_.
-© 2016 Peter Odding.
+© 2017 Peter Odding.
.. External references:
.. _descriptions: http://docs.python.org/howto/logging.html#when-to-use-logging
diff --git a/setup.cfg b/setup.cfg
index 6c71b61..1e3eb36 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,5 +4,4 @@ universal = 1
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/setup.py b/setup.py
index 6c32408..4b2b3a4 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
# Verbose, notice, and spam log levels for Python's logging module.
#
# Author: Peter Odding <peter at peterodding.com>
-# Last Change: July 26, 2016
+# Last Change: March 7, 2017
# URL: https://verboselogs.readthedocs.io
"""Setup script for the `verboselogs` package."""
@@ -57,6 +57,7 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development',
diff --git a/verboselogs.egg-info/PKG-INFO b/verboselogs.egg-info/PKG-INFO
index dd4e212..d81def3 100644
--- a/verboselogs.egg-info/PKG-INFO
+++ b/verboselogs.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: verboselogs
-Version: 1.5
+Version: 1.6
Summary: Verbose logging level for Python's logging module
Home-page: https://verboselogs.readthedocs.io
Author: Peter Odding
@@ -24,7 +24,7 @@ Description: verboselogs: Verbose logging level for Python's logging module
The code to do this is simple and short, but I still don't want to copy/paste
it to every project I'm working on, hence this package. It's currently tested
- on Python 2.6, 2.7, 3.4, 3.5 and PyPy.
+ on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy.
.. contents::
:local:
@@ -211,7 +211,7 @@ Description: verboselogs: Verbose logging level for Python's logging module
This software is licensed under the `MIT license`_.
- © 2016 Peter Odding.
+ © 2017 Peter Odding.
.. External references:
.. _descriptions: http://docs.python.org/howto/logging.html#when-to-use-logging
@@ -246,6 +246,7 @@ Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development
diff --git a/verboselogs/__init__.py b/verboselogs/__init__.py
index e99ec29..3c1a7e0 100644
--- a/verboselogs/__init__.py
+++ b/verboselogs/__init__.py
@@ -1,7 +1,7 @@
# Verbose, notice, and spam log levels for Python's logging module.
#
# Author: Peter Odding <peter at peterodding.com>
-# Last Change: July 26, 2016
+# Last Change: March 7, 2017
# URL: https://verboselogs.readthedocs.io
"""
@@ -17,7 +17,7 @@ module.
import logging
-__version__ = '1.5'
+__version__ = '1.6'
"""Semi-standard module versioning."""
NOTICE = 25
@@ -125,14 +125,17 @@ class VerboseLogger(logging.Logger):
logging.Logger.__init__(self, *args, **kw)
self.parent = logging.getLogger()
- def notice(self, *args, **kw):
+ def notice(self, msg, *args, **kw):
"""Log a message with level :data:`NOTICE`. The arguments are interpreted as for :func:`logging.debug()`."""
- self.log(NOTICE, *args, **kw)
+ if self.isEnabledFor(NOTICE):
+ self._log(NOTICE, msg, args, **kw)
- def verbose(self, *args, **kw):
+ def verbose(self, msg, *args, **kw):
"""Log a message with level :data:`VERBOSE`. The arguments are interpreted as for :func:`logging.debug()`."""
- self.log(VERBOSE, *args, **kw)
+ if self.isEnabledFor(VERBOSE):
+ self._log(VERBOSE, msg, args, **kw)
- def spam(self, *args, **kw):
+ def spam(self, msg, *args, **kw):
"""Log a message with level :data:`SPAM`. The arguments are interpreted as for :func:`logging.debug()`."""
- self.log(SPAM, *args, **kw)
+ if self.isEnabledFor(SPAM):
+ self._log(SPAM, msg, args, **kw)
diff --git a/verboselogs/tests.py b/verboselogs/tests.py
index f56e49d..2a49109 100644
--- a/verboselogs/tests.py
+++ b/verboselogs/tests.py
@@ -47,12 +47,12 @@ class VerboseLogsTestCase(unittest.TestCase):
"""
for name in 'notice', 'verbose', 'spam':
logger = verboselogs.VerboseLogger(random_string())
- logger.log = mock.MagicMock()
+ logger._log = mock.MagicMock()
level = getattr(verboselogs, name.upper())
method = getattr(logger, name.lower())
message = "Any random message"
method(message)
- logger.log.assert_called_with(level, message)
+ logger._log.assert_called_with(level, message, ())
def test_pylint_plugin(self):
"""Test the :mod:`verboselogs.pylint` module."""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-verboselogs.git
More information about the Python-modules-commits
mailing list