]> granicus.if.org Git - python/commitdiff
Tidied up name of parameter in StreamHandler
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Sep 2009 14:53:32 +0000 (14:53 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Sep 2009 14:53:32 +0000 (14:53 +0000)
Doc/library/logging.rst
Lib/logging/__init__.py

index 07833bb83a06b99e9f34e056666eaa62685bd3b3..ef2f34af95dbe4d11e144d0b874a100dbe2f1b2a 100644 (file)
@@ -1681,9 +1681,9 @@ file-like object (or, more precisely, any object which supports :meth:`write`
 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.
 
index 9e18c22705a27fdc8e035dbe2b6e30403d30df32..9c72542c2b162bc3438ef829fef9194759632211 100644 (file)
@@ -745,16 +745,16 @@ class StreamHandler(Handler):
     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):
         """