subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From futat...@apache.org
Subject svn commit: r1854007 - /subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
Date Thu, 21 Feb 2019 00:36:47 GMT
Author: futatuki
Date: Thu Feb 21 00:36:46 2019
New Revision: 1854007

URL: http://svn.apache.org/viewvc?rev=1854007&view=rev
Log:
On branch swig-py3: Unify error message between py2 and py3

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
 (read_handler_pyio): Remove IS_PY3 conditional by unifying error message

Modified:
    subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

Modified: subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
URL: http://svn.apache.org/viewvc/subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c?rev=1854007&r1=1854006&r2=1854007&view=diff
==============================================================================
--- subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
(original)
+++ subversion/branches/swig-py3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
Thu Feb 21 00:36:46 2019
@@ -2782,11 +2782,7 @@ read_handler_pyio(void *baton, char *buf
     }
   else
     {
-      #if IS_PY3
       err = callback_bad_return_error("Not a bytes object");
-      #else
-      err = callback_bad_return_error("Not a string");
-      #endif
     }
   Py_XDECREF(result);
   svn_swig_py_release_py_lock();



Mime
View raw message