Staging
v0.5.1
https://github.com/python/cpython
Revision 04ac4c1cb8e7af5571adbe64cb82938a323e5850 authored by Christian Heimes on 11 September 2012, 13:47:28 UTC, committed by Christian Heimes on 11 September 2012, 13:47:28 UTC
1 parent eeb5635
Raw File
Tip revision: 04ac4c1cb8e7af5571adbe64cb82938a323e5850 authored by Christian Heimes on 11 September 2012, 13:47:28 UTC
Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening.
Tip revision: 04ac4c1
.hgeol
[patterns]

# Non human-editable files are binary

**.dsp  = BIN
**.dsw  = BIN
**.mk   = BIN
**.sln  = BIN
**.vcproj  = BIN
**.vsprops = BIN

**.aif  = BIN
**.au   = BIN
**.bmp  = BIN
**.db   = BIN
**.exe  = BIN
**.icns = BIN
**.gif  = BIN
**.ico  = BIN
**.info = BIN
**.jpg  = BIN
**.pck  = BIN
**.png  = BIN
**.psd  = BIN
**.tar  = BIN
**.xar  = BIN
**.zip  = BIN

Lib/email/test/data/msg_26.txt = BIN
Lib/test/cjkencodings/* = BIN
Lib/test/decimaltestdata/*.decTest = BIN
Lib/test/sndhdrdata/sndhdr.* = BIN
Lib/test/test_email/data/msg_26.txt = BIN

Lib/venv/scripts/nt/* = BIN

# All other files (which presumably are human-editable) are "native".
# This must be the last rule!

** = native

[repository]
native = LF
back to top