(self)
return Dialect(delimiter, quotechar, escapechar,
                       doublequote=True, skipinitialspace=skipinitialspace,
                       quoting=quoting)
Return the current state as a `csv.Dialect` instance.
Return the current state as a `csv.Dialect` instance.
Return the current state as a csv . Dialect instance .
def dialect(self):
        # type: () -> csv.Dialect
        """
        Return the current state as a `csv.Dialect` instance.
        """
        if self._delimiter_idx == CSVOptionsWidget.DelimiterOther:
            delimiter = self._delimiter_custom
        elif 0 <= self._delimiter_idx < len(CSVOptionsWidget.PresetDelimiters):
            _, delimiter = CSVOptionsWidget.PresetDelimiters[self._delimiter_idx]
        else:
            assert False

        quotechar = self.quoteedit.text() or None
        skipinitialspace = True
        escapechar = None
        quoting = csv.QUOTE_MINIMAL if quotechar is not None else csv.QUOTE_NONE
        return Dialect(delimiter, quotechar, escapechar,
                       doublequote=True, skipinitialspace=skipinitialspace,
                       quoting=quoting)
def dialect ( self ) : # type: () -> csv.Dialect if self . _delimiter_idx == CSVOptionsWidget . DelimiterOther : delimiter = self . _delimiter_custom elif 0 <= self . _delimiter_idx < len ( CSVOptionsWidget . PresetDelimiters ) : _ , delimiter = CSVOptionsWidget . PresetDelimiters [ self . _delimiter_idx ] else : assert False quotechar = self . quoteedit . text ( ) or None skipinitialspace = True escapechar = None quoting = csv . QUOTE_MINIMAL if quotechar is not None else csv . QUOTE_NONE return Dialect ( delimiter , quotechar , escapechar , doublequote = True , skipinitialspace = skipinitialspace , quoting = quoting )