This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients benjamin.peterson, eric.smith, loewis
Date 2008-09-27.18:42:02
SpamBayes Score 0.0005211344
Marked as misclassified No
Message-id <48DE7E78.5010605@v.loewis.de>
In-reply-to <1afaf6160809271039k1c57f03o5eff42a624425aec@mail.gmail.com>
Content
> I'm working on the tests for ftplib. [1] The dummy server uses string
> formatting to build responses.

I see. I propose to add a method push_string, defined as

  def push_string(self, s):
      self.push(s.encode("ascii")

In FTP, the responses are, by definition, ASCII-encoded strings.
The proper way to generate them is to make a string, then encode it.
History
Date User Action Args
2008-09-27 18:42:05loewissetrecipients: + loewis, eric.smith, benjamin.peterson
2008-09-27 18:42:03loewislinkissue3982 messages
2008-09-27 18:42:02loewiscreate