Follow up to r1900882: Restore Python 2.7 support on autogen.sh * build/generator/gen_base.py Use configparser.ConfigParser.readfp as configparser.ConfigParser.read_file if configparser package is actually ConfigParser.