(fd)
| 526 | |
| 527 | |
| 528 | def fd_id(fd): |
| 529 | # Returns a tuple which uniquely identifies a file descriptor. In Mac OS, |
| 530 | # this doesn't work with shared memory handles, which is why we don't |
| 531 | # support the "file_descriptor" sharing method on that platform. |
| 532 | stat = os.fstat(fd) |
| 533 | return (stat.st_ino, stat.st_dev) |
| 534 | |
| 535 | |
| 536 | def storage_from_cache(cls, key): |
no outgoing calls
no test coverage detected