parameters: (self, sample, delimiters=None)
return_statement: return dialect
docstring: Returns a dialect (or None) corresponding to the sample
docstring_summary: Returns a dialect (or None) corresponding to the sample
docstring_tokens: Returns a dialect ( or None ) corresponding to the sample
function: def sniff(self, sample, delimiters=None):
          """
          Returns a dialect (or None) corresponding to the sample
          """
  
          quotechar, doublequote, delimiter, skipinitialspace = \
                     self._guess_quote_and_delimiter(sample, delimiters)
          if not delimiter:
              delimiter, skipinitialspace = self._guess_delimiter(sample,
                                                                  delimiters)
  
          if not delimiter:
              raise Error, "Could not determine delimiter"
  
          class dialect(Dialect):
              _name = "sniffed"
              lineterminator = '\r\n'
              quoting = QUOTE_MINIMAL
              # escapechar = ''
  
          dialect.doublequote = doublequote
          dialect.delimiter = delimiter
          # _csv.reader won't accept a quotechar of ''
          dialect.quotechar = quotechar or '"'
          dialect.skipinitialspace = skipinitialspace
  
          return dialect
function_tokens: def sniff ( self , sample , delimiters = None ) : quotechar , doublequote , delimiter , skipinitialspace = self . _guess_quote_and_delimiter ( sample , delimiters ) if not delimiter : delimiter , skipinitialspace = self . _guess_delimiter ( sample , delimiters ) if not delimiter : raise Error , "Could not determine delimiter" class dialect ( Dialect ) : _name = "sniffed" lineterminator = '\r\n' quoting = QUOTE_MINIMAL # escapechar = '' dialect . doublequote = doublequote dialect . delimiter = delimiter # _csv.reader won't accept a quotechar of '' dialect . quotechar = quotechar or '"' dialect . skipinitialspace = skipinitialspace return dialect