code: def print_conf(self):
          
  
          config_file_type = self._get_option('admin.print_conf').value
  
          @contextlib.contextmanager
          def stdout_opener():
              yield sys.stdout
  
          skip_keys = [
              k for (k, v)
              in six.iteritems(self.option_definitions)
              if isinstance(v, Option) and v.exclude_from_print_conf
          ]
          self.write_conf(config_file_type, stdout_opener, skip_keys=skip_keys)
docs: write a config file to the pathname specified in the parameter.  The
          file extention determines the type of file written and must match a
          registered type.
  
          parameters:
              config_pathname - the full path and filename of the target config
                                 file.