code: def _dumps_itr(cnf, dkey=DEFAULTSECT):
      
      for sect, params in iteritems(cnf):
          yield "[%s]" % sect
  
          for key, val in iteritems(params):
              if sect != dkey and dkey in cnf and cnf[dkey].get(key) == val:
                  continue  # It should be in [DEFAULT] section.
  
              yield "%s = %s" % (key, _to_s(val))
  
          yield ''
docs: :param cnf: Configuration data to dump