]> granicus.if.org Git - python/commitdiff
Add an import to the logging example
authorRaymond Hettinger <python@rcn.com>
Mon, 17 Jan 2011 23:42:17 +0000 (23:42 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 17 Jan 2011 23:42:17 +0000 (23:42 +0000)
Doc/whatsnew/3.2.rst

index 1128c28d1c4f7fada341550598004f73054326cd..b65696d440ef011b3e158a423b271cf0a70e39f5 100644 (file)
@@ -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")