[Python-checkins] r75076 - in python/trunk: Doc/library/logging.rst Lib/logging/__init__.py

vinay.sajip python-checkins at python.org
Sat Sep 26 16:53:33 CEST 2009


Author: vinay.sajip
Date: Sat Sep 26 16:53:32 2009
New Revision: 75076

Log:
Tidied up name of parameter in StreamHandler

Modified:
   python/trunk/Doc/library/logging.rst
   python/trunk/Lib/logging/__init__.py

Modified: python/trunk/Doc/library/logging.rst
==============================================================================
--- python/trunk/Doc/library/logging.rst	(original)
+++ python/trunk/Doc/library/logging.rst	Sat Sep 26 16:53:32 2009
@@ -1681,9 +1681,9 @@
 and :meth:`flush` methods).
 
 
-.. class:: StreamHandler([strm])
+.. class:: StreamHandler([stream])
 
-   Returns a new instance of the :class:`StreamHandler` class. If *strm* is
+   Returns a new instance of the :class:`StreamHandler` class. If *stream* is
    specified, the instance will use it for logging output; otherwise, *sys.stderr*
    will be used.
 

Modified: python/trunk/Lib/logging/__init__.py
==============================================================================
--- python/trunk/Lib/logging/__init__.py	(original)
+++ python/trunk/Lib/logging/__init__.py	Sat Sep 26 16:53:32 2009
@@ -745,16 +745,16 @@
     sys.stdout or sys.stderr may be used.
     """
 
-    def __init__(self, strm=None):
+    def __init__(self, stream=None):
         """
         Initialize the handler.
 
-        If strm is not specified, sys.stderr is used.
+        If stream is not specified, sys.stderr is used.
         """
         Handler.__init__(self)
-        if strm is None:
-            strm = sys.stderr
-        self.stream = strm
+        if stream is None:
+            stream = sys.stderr
+        self.stream = stream
 
     def flush(self):
         """


More information about the Python-checkins mailing list