From: Raymond Hettinger Date: Mon, 17 Jan 2011 23:42:17 +0000 (+0000) Subject: Add an import to the logging example X-Git-Tag: v3.2rc2~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ba8b0a117135083b7955e8089cdeffd8902350d;p=python Add an import to the logging example --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 1128c28d1c..b65696d440 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")