Compatibility shim implementing 'create_stats' needed by Stats classes to handle already unmarshalled data.
| 645 | #************************************************************************** |
| 646 | |
| 647 | class StatsLoaderShim: |
| 648 | """Compatibility shim implementing 'create_stats' needed by Stats classes |
| 649 | to handle already unmarshalled data.""" |
| 650 | def __init__(self, raw_stats): |
| 651 | self.stats = raw_stats |
| 652 | |
| 653 | def create_stats(self): |
| 654 | pass |
| 655 | |
| 656 | def stats_factory(raw_stats): |
| 657 | """Return a Stats or SampledStats instance based on the marker in raw_stats.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…