summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.2.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-17 23:42:17 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-17 23:42:17 (GMT)
commit9ba8b0a117135083b7955e8089cdeffd8902350d (patch)
tree437fb9b7879eb3745f403ce9a6252a5cd5a16ac5 /Doc/whatsnew/3.2.rst
parent02dd70be5cbc2dfaac79a34ae9aedd62d107a396 (diff)
downloadcpython-9ba8b0a117135083b7955e8089cdeffd8902350d.zip
cpython-9ba8b0a117135083b7955e8089cdeffd8902350d.tar.gz
cpython-9ba8b0a117135083b7955e8089cdeffd8902350d.tar.bz2
Add an import to the logging example
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r--Doc/whatsnew/3.2.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 1128c28..b65696d 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -208,6 +208,7 @@ dictionary::
If that dictionary is stored in a file called :file:`conf.json`, it can be
loaded and called with code like this::
+ import json
import logging.config
logging.config.dictConfig(json.load(open('conf.json', 'rb')))
logging.info("Transaction completed normally")