MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / _parse_in_quoted_field

Method _parse_in_quoted_field

web/pgadmin/utils/csv_lib.py:377–387  ·  view source on GitHub ↗
(self, c)

Source from the content-addressed store, hash-verified

375 self.parse_add_char(c)
376
377 def _parse_in_quoted_field(self, c):
378 if c != '\0' and c == self.dialect.escapechar:
379 self.state = ESCAPE_IN_QUOTED_FIELD
380 elif c != '\0' and (c == self.dialect.quotechar and
381 self.dialect.quoting != QUOTE_NONE):
382 if self.dialect.doublequote:
383 self.state = QUOTE_IN_QUOTED_FIELD
384 else:
385 self.state = IN_FIELD
386 elif c != '\0':
387 self.parse_add_char(c)
388
389 def _parse_escape_in_quoted_field(self, c):
390 if c == '\0':

Callers

nothing calls this directly

Calls 1

parse_add_charMethod · 0.95

Tested by

no test coverage detected