MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / __init__

Method __init__

web/pgadmin/utils/csv_lib.py:268–281  ·  view source on GitHub ↗
(self, fileobj, dialect='excel', **fmtparams)

Source from the content-addressed store, hash-verified

266
267class Reader():
268 def __init__(self, fileobj, dialect='excel', **fmtparams):
269 self.input_iter = iter(fileobj)
270
271 if isinstance(dialect, str):
272 dialect = get_dialect(dialect)
273
274 try:
275 self.dialect = Dialect.combine(dialect, fmtparams)
276 except Error as e:
277 raise TypeError(*e.args)
278
279 self.fields = None
280 self.field = None
281 self.line_num = 0
282
283 def parse_reset(self):
284 self.fields = []

Callers

nothing calls this directly

Calls 2

get_dialectFunction · 0.85
combineMethod · 0.80

Tested by

no test coverage detected