• Guido van Rossum's avatar
    Rip out the file object's implementation. · da5b8f2d
    Guido van Rossum authored
    Fixed test_import.py while I was at it.
    
    However, there's still a problem in import.c -- get_file() can leak a
    FILE struct (not a file descriptor though).  I'm not sure how to fix
    this; closing the FILE* closes the file descriptor, and that's the
    wrong thing to do when there's still a Python file object keeping the
    file descriptor open.  I also would rather not mess with dup(), as it
    won't port to Windows.
    da5b8f2d
import.c 78.2 KB