Ticket #12578: multipartparser.diff

File multipartparser.diff, 543 bytes (added by Jacob Fenwick, 15 years ago)

code to print chunks to file

  • multipartparser.py

     
    546546    # and parse it if found. The header must fit within one
    547547    # chunk.
    548548    chunk = stream.read(max_header_size)
     549    print "printing to c:/chunk.txt"
     550    f = open('c:/chunk.txt', 'a')
     551    f.write(chunk)
     552    f.close()
    549553
    550554    # 'find' returns the top of these four bytes, so we'll
    551555    # need to munch them later to prevent them from polluting
Back to Top