incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1399964 - /incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx
Date Fri, 19 Oct 2012 04:38:16 GMT
Author: pfg
Date: Fri Oct 19 04:38:16 2012
New Revision: 1399964

URL: http://svn.apache.org/viewvc?rev=1399964&view=rev
Log:
Python 3 unified PyInt and PyLong.

Modified:
    incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx

Modified: incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx?rev=1399964&r1=1399963&r2=1399964&view=diff
==============================================================================
--- incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx (original)
+++ incubator/ooo/trunk/main/pyuno/source/module/pyuno_runtime.cxx Fri Oct 19 04:38:16 2012
@@ -662,6 +662,7 @@ Any Runtime::pyObject2Any ( const PyRef 
     {
 
     }
+#if PY_MAJOR_VERSION < 3	// Python 3 has no PyInt
     else if (PyInt_Check (o))
     {
         if( o == Py_True )
@@ -693,6 +694,7 @@ Any Runtime::pyObject2Any ( const PyRef 
             }
         }
     }
+#endif				// Python 3 has no PyInt
     else if (PyLong_Check (o))
     {
         sal_Int64 l = (sal_Int64)PyLong_AsLong (o);



Mime
View raw message