for (nominal, there), actual in zip(pending, actuals):
overwriting_info = fdmap.get(nominal)
if overwriting_info is not None: os.close(overwriting_info[0])
- fdmap[nominal] = (actual, donor, there)
+ fdmap[nominal] = [actual, donor, there]
def implement_sockinfo(nominal):
(actual, tdonor, there) = fdmap[nominal]
if inway_intended is not None:
inway_moved = os.dup(intended)
actual2intended[inway_moved] = inway_intended
- fdmap[inway_intented][0] = inway_moved
+ fdmap[inway_intended][0] = inway_moved
os.dup2(actual, intended)
os.close(actual)