parameters: (encoding)
return_statement: return encoder
docstring: Lookup up the codec for the given encoding and return
          its IncrementalEncoder class or factory function.
  
          Raises a LookupError in case the encoding cannot be found
          or the codecs doesn't provide an incremental encoder.
docstring_summary: Lookup up the codec for the given encoding and return
          its IncrementalEncoder class or factory function.
docstring_tokens: Lookup up the codec for the given encoding and return its IncrementalEncoder class or factory function .
function: def getincrementalencoder(encoding):
  
      """ Lookup up the codec for the given encoding and return
          its IncrementalEncoder class or factory function.
  
          Raises a LookupError in case the encoding cannot be found
          or the codecs doesn't provide an incremental encoder.
  
      """
      encoder = lookup(encoding).incrementalencoder
      if encoder is None:
          raise LookupError(encoding)
      return encoder
function_tokens: def getincrementalencoder ( encoding ) : encoder = lookup ( encoding ) . incrementalencoder if encoder is None : raise LookupError ( encoding ) return encoder