~ubuntu-branches/ubuntu/utopic/python3.3/utopic

« back to all changes in this revision

Viewing changes to Lib/http/client.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-01-27 12:13:57 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20140127121357-60ennw934dn1qirz
Tags: 3.3.4~rc1-1
Python 3.3.4 release candidate 1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
        # connection, and the user is reading more bytes than will be provided
545
545
        # (for example, reading in 1k chunks)
546
546
        n = self.fp.readinto(b)
547
 
        if not n:
 
547
        if not n and b:
548
548
            # Ideally, we would raise IncompleteRead if the content-length
549
549
            # wasn't satisfied, but it might break compatibility.
550
550
            self._close_conn()