Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from ConfigParser import SafeConfigParser
- la = SafeConfigParser({"foo": "baz"})
- la.add_section("main")
- la.items("main")
- ba = SafeConfigParser({"foo": False})
- ba.add_section("main")
- ba.items("main")
- # This one will fail ...
- boo = SafeConfigParser({"foo": True})
- boo.add_section("main")
- boo.items("main")
- # This one too ...
- boo2 = SafeConfigParser({"foo": 666})
- boo2.add_section("main")
- boo2.items("main")
- # ... WTF?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement