Ejemplo n.º 1
0
 def displayfunction(cur: Iterable[Record],
                     scan: Optional[Any] = None) -> None:
     if scan is not None:
         LOGGER.debug("Scan not displayed in JSON mode")
     for rec in cur:
         print(json.dumps(rec, default=serialize))
Ejemplo n.º 2
0
 def displayfunction(cur, scan=None):
     if scan is not None:
         LOGGER.debug("Scan not displayed in JSON mode")
     for rec in cur:
         print(json.dumps(rec))