Code extracted from Victor Stinner's patch for issue #12567.
Attach a file by drag & drop or click to upload