'Read configuration from a string.
A backwards-compatible version of the ConfigParser.read_string()
method that was introduced in Python 3.'

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

    if six.PY3:
        ConfigParser.read_string(self, string, source=source)
    else:
        import StringIO
        self.readfp(StringIO.StringIO(string))
