| 341 | } |
| 342 | |
| 343 | DictObject::DictObject(std::shared_ptr<const AbstractProcessManager> manager, remote_addr_t addr) |
| 344 | : d_manager(std::move(manager)) |
| 345 | { |
| 346 | // For now, the layout that we use here only allows us to get Python3.6+ dictionaries |
| 347 | // as dictionaries before that have much more variability and are much harder to get. |
| 348 | |
| 349 | if (d_manager->versionIsAtLeast(3, 6)) { |
| 350 | loadFromPython3(addr); |
| 351 | } else if (d_manager->versionIsAtLeast(3, 0)) { |
| 352 | d_invalid = true; |
| 353 | } else { |
| 354 | loadFromPython2(addr); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | void |
| 359 | DictObject::loadFromPython3(remote_addr_t addr) |
nothing calls this directly
no test coverage detected