[Python-checkins] cpython (3.2): Issue #8890: Remove /tmp from examples.

raymond.hettinger python-checkins at python.org
Sun Jun 26 15:29:42 CEST 2011


http://hg.python.org/cpython/rev/1ed71544fceb
changeset: 70998:1ed71544fceb
branch: 3.2
parent: 70996:c0a68b948f5d
user: Raymond Hettinger <python at rcn.com>
date: Sun Jun 26 15:29:06 2011 +0200
summary:
 Issue #8890: Remove /tmp from examples.
files:
 Doc/howto/logging-cookbook.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -723,7 +723,7 @@
 # The size of the rotated files is made small so you can see the results easily.
 def listener_configurer():
 root = logging.getLogger()
- h = logging.handlers.RotatingFileHandler('/tmp/mptest.log', 'a', 300, 10)
+ h = logging.handlers.RotatingFileHandler('mptest.log', 'a', 300, 10)
 f = logging.Formatter('%(asctime)s %(processName)-10s %(name)s %(levelname)-8s %(message)s')
 h.setFormatter(f)
 root.addHandler(h)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /