Commits

Thomas Kluyver committed 639102f

Tweaks so compile succeeds in Python 3

  • Participants
  • Parent commits acf8840
  • Branches version_2.2.x

Comments (0)

Files changed (1)

rpy/rinterface/sequence.c

     } else if (PyLong_Check(item)
 #if (PY_VERSION_HEX < 0x03010000)
 	       || PyInt_Check(item)) {
+#else
+        ) {
 #endif	       
       new_sexp_item = IntVectorSexp_AsSexp(item);
       if (new_sexp_item) {
     } else if (PyUnicode_Check(item)
 #if (PY_VERSION_HEX < 0x03010000)
 	       || PyString_Check(item)) {
+#else
+        ) {
 #endif
       new_sexp_item = StrVectorSexp_AsSexp(item);
       if (new_sexp_item) {