MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/astroprint/software.py:125–132  ·  view source on GitHub ↗
(self, progressCb)

Source from the content-addressed store, hash-verified

123
124 class CacheUpdateFetchProgress(apt.progress.base.AcquireProgress):
125 def __init__(self, progressCb):
126 super(CacheUpdateFetchProgress, self).__init__()
127
128 self._progressCb = progressCb
129 self._logger = logging.getLogger(__name__)
130 self._errors = False
131 self._lastCurrentReported = None
132 self._lastTotalReported = None
133
134 def pulse(self, owner):
135 if self.current_items != self._lastCurrentReported or self.total_items != self._lastTotalReported:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected