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

Method _parse_escaped_char

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

Source from the content-addressed store, hash-verified

345 self.state = IN_FIELD
346
347 def _parse_escaped_char(self, c):
348 if c == '\n' or c == '\r':
349 self.parse_add_char(c)
350 self.state = AFTER_ESCAPED_CRNL
351 return
352 if c == '\0':
353 c = '\n'
354 self.parse_add_char(c)
355 self.state = IN_FIELD
356
357 def _parse_after_escaped_crnl(self, c):
358 if c == '\0':

Callers

nothing calls this directly

Calls 1

parse_add_charMethod · 0.95

Tested by

no test coverage detected