Created
March 22, 2014 10:15
-
-
Save sshopov/9704218 to your computer and use it in GitHub Desktop.
Convert and .ini file to a dictionary. Ref: http://www.reddit.com/r/Python/comments/20x61y/share_the_code_youre_most_proud_of/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dict((section, dict(cfg_parser.items(section))) for section in cfg_parser.sections()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment