[Python-checkins] cpython: Mention that level can be an int or str in the setLevel docstring.

gregory.p.smith python-checkins at python.org
Sat Dec 17 21:39:55 CET 2011


http://hg.python.org/cpython/rev/652605cdd3d6
changeset:   74013:652605cdd3d6
user:        Gregory P. Smith <greg at krypto.org>
date:        Sat Dec 17 12:36:34 2011 -0800
summary:
  Mention that level can be an int or str in the setLevel docstring.

files:
  Lib/logging/__init__.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -789,7 +789,7 @@
 
     def setLevel(self, level):
         """
-        Set the logging level of this handler.
+        Set the logging level of this handler.  level must be an int or a str.
         """
         self.level = _checkLevel(level)
 
@@ -1194,7 +1194,7 @@
 
     def setLevel(self, level):
         """
-        Set the logging level of this logger.
+        Set the logging level of this logger.  level must be an int or a str.
         """
         self.level = _checkLevel(level)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list