[2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) by corona10 · Pull Request #2894 · python/cpython
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters