[2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) by corona10 · Pull Request #2894 · python/cpython

@corona10

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the rationale for this change? It seems specific to Python 3 where all OS-like exceptions have be replaced by a single OSError. On Python 2.7, you really want IOError. Please revert this change, to repair failing tests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Haypo Oh, you are right. Thank you for comment.

@corona10

@corona10

@vstinner