[Python-checkins] [python/cpython] d81f9e: bpo-30264: ExpatParser now closes the source (#147...

GitHub noreply at github.com
Fri May 5 04:11:56 EDT 2017


  Branch: refs/heads/2.7
  Home:   https://github.com/python/cpython
  Commit: d81f9e24ea89c0aaded1e0d3f8d8076bbd58c19a
      https://github.com/python/cpython/commit/d81f9e24ea89c0aaded1e0d3f8d8076bbd58c19a
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-05-05 (Fri, 05 May 2017)

  Changed paths:
    M Lib/test/test_sax.py
    M Lib/xml/sax/expatreader.py

  Log Message:
  -----------
  bpo-30264: ExpatParser now closes the source (#1476)

ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).

Add test_parse_close_source() unit test.




More information about the Python-checkins mailing list