subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From futat...@apache.org
Subject svn commit: r1871349 - /subversion/trunk/subversion/bindings/swig/core.i
Date Fri, 13 Dec 2019 18:52:44 GMT
Author: futatuki
Date: Fri Dec 13 18:52:43 2019
New Revision: 1871349

URL: http://svn.apache.org/viewvc?rev=1871349&view=rev
Log:
Fix an issue in config_dir argments on SWIG Python 3 bindings

On Python 3 binings, svn_config_* functions which has config_dir argments 
(listed on [1]) couldn't accept bytes object for it although all functions 
returns path as bytes object. This fixes it.

[1] svn_config_get_config, svn_config_ensure, svn_config_read_auth_data,
 svn_config_write_auth_data, svn_config_walk_auth_data,
 svn_config_get_user_config_path

* subversion/bindings/swig/core.i
 (typemap(in,parse="z") const char *config_dir ""): Removed.

Found by: danielsh

Modified:
    subversion/trunk/subversion/bindings/swig/core.i

Modified: subversion/trunk/subversion/bindings/swig/core.i
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/core.i?rev=1871349&r1=1871348&r2=1871349&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/core.i (original)
+++ subversion/trunk/subversion/bindings/swig/core.i Fri Dec 13 18:52:43 2019
@@ -725,11 +725,6 @@ core_set_current_pool (apr_pool_t *pool)
                   svn_swig_rb_config_section_enumerator)
 #endif
 
-/* Allow None to be passed as config_dir argument */
-#ifdef SWIGPYTHON
-%typemap(in,parse="z") const char *config_dir "";
-#endif
-
 /* -----------------------------------------------------------------------
   thunk the various authentication prompt functions.
   PERL NOTE: store the inputed SV in _global_callback for use in the



Mime
View raw message