original_docstring: 
          Reload a ConfigObj from file.
          
          This method raises a ``ReloadError`` if the ConfigObj doesn't have
          a filename attribute pointing to a file.
          
docstring: Reload a ConfigObj from file.
  This method raises a ``ReloadError`` if the ConfigObj doesn't have
  a filename attribute pointing to a file.
docstring_tokens: Reload a ConfigObj from file . This method raises a ` ` ReloadError ` ` if the ConfigObj doesn ' t have a filename attribute pointing to a file .
code: def reload(self):
          """
          Reload a ConfigObj from file.
          
          This method raises a ``ReloadError`` if the ConfigObj doesn't have
          a filename attribute pointing to a file.
          """
          if not isinstance(self.filename, six.string_types):
              raise ReloadError()
          filename = self.filename
          current_options = {}
          for entry in OPTION_DEFAULTS:
              if entry == 'configspec':
                  continue
              else:
                  current_options[entry] = getattr(self, entry)
  
          configspec = self._original_configspec
          current_options['configspec'] = configspec
          self.clear()
          self._initialise(current_options)
          self._load(filename, configspec)
code_tokens: def reload ( self ) : if not isinstance ( self . filename , six . string_types ) : raise ReloadError ( ) filename = self . filename current_options = { } for entry in OPTION_DEFAULTS : if entry == 'configspec' : continue else : current_options [ entry ] = getattr ( self , entry ) configspec = self . _original_configspec current_options [ 'configspec' ] = configspec self . clear ( ) self . _initialise ( current_options ) self . _load ( filename , configspec )
short_docstring: Reload a ConfigObj from file.
short_docstring_tokens: Reload a ConfigObj from file .
comment: """
          Reload a ConfigObj from file.
          
          This method raises a ``ReloadError`` if the ConfigObj doesn't have
          a filename attribute pointing to a file.
          """