Comment 10 for bug 2041407

Revision history for this message
Stefano Rivera (stefanor) wrote :

Sorry, That was the wrong way around, read_file isn't in 2.7. We need both.

In 2.7 read_file isn't available, and in 3.12 readfp isn't available.

So the current getattr construct won't work either way. It probably needs a "if hasattr", with 2 branches.