prevent transient leaks of file handle by using new helper functions
These leaks may occur in environments that don't employ a reference counting GC, i.e. PyPy. This implies: - changing opener(...).read() calls to opener.read(...) - changing opener(...).write() calls to opener.write(...) - changing open(...).read(...) to util.readfile(...) - changing open(...).write(...) to util.writefile(...)
Showing
- hgext/convert/darcs.py 1 addition, 1 deletionhgext/convert/darcs.py
- hgext/convert/subversion.py 1 addition, 1 deletionhgext/convert/subversion.py
- hgext/extdiff.py 1 addition, 1 deletionhgext/extdiff.py
- hgext/gpg.py 1 addition, 1 deletionhgext/gpg.py
- hgext/keyword.py 1 addition, 1 deletionhgext/keyword.py
- hgext/mq.py 3 additions, 3 deletionshgext/mq.py
- hgext/transplant.py 2 additions, 2 deletionshgext/transplant.py
- mercurial/bookmarks.py 2 additions, 2 deletionsmercurial/bookmarks.py
- mercurial/cmdutil.py 1 addition, 1 deletionmercurial/cmdutil.py
- mercurial/commands.py 2 additions, 2 deletionsmercurial/commands.py
- mercurial/dirstate.py 3 additions, 3 deletionsmercurial/dirstate.py
- mercurial/filemerge.py 3 additions, 3 deletionsmercurial/filemerge.py
- mercurial/help.py 2 additions, 1 deletionmercurial/help.py
- mercurial/hg.py 3 additions, 3 deletionsmercurial/hg.py
- mercurial/localrepo.py 14 additions, 12 deletionsmercurial/localrepo.py
- mercurial/match.py 1 addition, 1 deletionmercurial/match.py
- mercurial/merge.py 1 addition, 1 deletionmercurial/merge.py
- mercurial/minirst.py 1 addition, 1 deletionmercurial/minirst.py
- mercurial/statichttprepo.py 1 addition, 1 deletionmercurial/statichttprepo.py
- mercurial/tags.py 1 addition, 1 deletionmercurial/tags.py
Loading
Please register or sign in to comment