Python configparser will not accept keys without values
问题 So I'm writing a script that reads from a config file, and I want to use it exactly how configparser is designed to be used as outlined here: http://docs.python.org/release/3.2.1/library/configparser.html I am using Python 3.2.1. The script, when complete, will run on a Windows 2008 R2 machine using the same version of Python, or assuming compatibility, the latest version at the time. #!/user/bin/env python import configparser config = configparser.ConfigParser() config.read('c:\exclude.ini')