~ubuntu-branches/ubuntu/wily/mercurial/wily

« back to all changes in this revision

Viewing changes to tests/get-with-headers.py

  • Committer: Package Import Robot
  • Author(s): Javi Merino
  • Date: 2013-11-01 23:19:57 UTC
  • mfrom: (1.2.38) (9.1.16 experimental)
  • Revision ID: package-import@ubuntu.com-20131101231957-hs70pwpinavlz3t6
Tags: 2.8-1
* New upstream release
* Fix mercurial-git and hgsubversion autopkgtest by loading the
  appropriate extension
* Bump standards-version to 3.9.5 (no change needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
            print "%s: %s" % (h, response.getheader(h))
44
44
    if not headeronly:
45
45
        print
46
 
        data = response.read()
47
 
        sys.stdout.write(data)
 
46
        if response.status != 500:
 
47
            data = response.read()
 
48
            sys.stdout.write(data)
48
49
 
49
50
        if twice and response.getheader('ETag', None):
50
51
            tag = response.getheader('ETag')