'Parse configuration data from a string.  This is intended
to be used in tests only.  We add this method for Py 2/3 compat.'

def read_string(self, string, source='<string>'):

    try:
        return ConfigParser.RawConfigParser.read_string(self, string, source)
    except AttributeError:
        return self.readfp(StringIO(string))
