r17082 | djames | 2005-10-28 16:10:01 -0500 (Fri, 28 Oct 2005)
Fix atexit handler to only destroy the application pool if it is a valid
application pool still exists.
Patch by: Andre Malo <nd@perlig.de>
(Tweaked by me to use the _cleanup_application_pool function.)
* subversion/bindings/swig/python/svn/core.py
(_cleanup_application_pool): New function. Destroy application pool if
it is still valid.
(): Use _cleanup_application_pool function in atexit handler.
r16213 | djames | 2005-09-22 16:11:13 -0500 (Thu, 22 Sep 2005)
Use pool=None instead of pool=Pool() to indicate optional pool parameter,
so as to avoid unnecessary creation of pools at import time and prevent
memory leaks. Followup to r16211.
Suggested by: André Malo <nd@perlig.de>
Thread: http://svn.haxx.se/dev/archive-2005-09/0754.shtml
* swig/python/svn/fs.py
(entries, FileDiff.__init__, FileDiff._dump_contents):
Use pool=None instead of pool=Pool() to indicate optional pool parameter.
* swig/python/svn/repos.py:
(ChangeCollector.__init__, ChangeCollector.delete_entry,
ChangeCollector.delete_entry, ChangeCollector.add_directory,
ChangeCollector.open_directory, ChangeCollector.change_dir_prop,
ChangeCollector.add_file, ChangeCollector.open_file,
ChangeCollector.change_file_prop, RevisionChangeCollector.__init__):
Use pool=None instead of pool=Pool() to indicate optional pool parameter.
* swig/python/svn/delta.py:
(Editor.open_root, Editor.delete_entry, Editor.add_directory,
Editor.open_directory, Editor.change_dir_prop, Editor.add_file,
Editor.open_file, Editor.change_file_prop, make_editor):
Use pool=None instead of pool=Pool() to indicate optional pool parameter.
r16170 | djames | 2005-09-20 13:32:16 -0500 (Tue, 20 Sep 2005)
Upgrade Python bindings to use absolute imports instead
of relative imports, because the absolute import syntax
makes it more clear where modules are coming from.
Patch by: André Malo <nd@perlig.de>
me
(djames found and fixed a few more examples of relative
imports)
* subversion/bindings/swig/python/svn/repos.py,
subversion/bindings/swig/python/svn/fs.py,
subversion/bindings/swig/python/svn/delta.py,
subversion/bindings/swig/python/svn/wc.py,
subversion/bindings/swig/python/svn/client.py,
subversion/bindings/swig/python/svn/ra.py:
Import from svn.core, svn.fs, and svn.delta
instead of core, fs, and delta.