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

Method __init__

web/pgadmin/utils/csv_lib.py:664–671  ·  view source on GitHub ↗
(self, f, fieldnames=None, restkey=None, restval=None,
                 *args, **kwds)

Source from the content-addressed store, hash-verified

662
663class DictReader():
664 def __init__(self, f, fieldnames=None, restkey=None, restval=None,
665 *args, **kwds):
666 self._fieldnames = fieldnames # list of keys for the dict
667 self.restkey = restkey # key to catch long rows
668 self.restval = restval # default value for short rows
669 self.dialect = kwds.get('dialect', "excel")
670 self.reader = Reader(f, self.dialect, *args, **kwds)
671 self.line_num = 0
672
673 def __iter__(self):
674 return self

Callers

nothing calls this directly

Calls 2

ReaderClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected