403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/science/silo/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/science/silo/files/patch-python3.8
Description: Fix for API change with python3.8
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-10-25
Forwarded: no

Index: tools/python/pydbfile.cpp
===================================================================
--- tools/python/pydbfile.cpp
+++ tools/python/pydbfile.cpp
@@ -69,6 +69,7 @@ using std::string;
 #define Py_RETURN_NOTIMPLEMENTED return NULL
 #endif
 
+
 // ****************************************************************************
 //  Method:  DBfile_DBGetToc
 //
@@ -900,7 +901,11 @@ PyTypeObject DBfileType =
   // Standard methods
   //
   tp_dealloc     : (destructor)DBfile_dealloc,
+#if (PY_MAJOR_VERSION <= 3)  && (PY_MINOR_VERSION <= 7)
   tp_print       : (printfunc)DBfile_print,
+#else
+  tp_vectorcall_offset : (printfunc)DBfile_print,
+#endif
 #if PY_MAJOR_VERSION >= 3
   tp_getattr     : 0,                   
 #else
Index: tools/python/pydbtoc.cpp
===================================================================
--- tools/python/pydbtoc.cpp
+++ tools/python/pydbtoc.cpp
@@ -355,7 +355,11 @@ PyTypeObject DBtocType =
     // Standard methods
     //
     tp_dealloc        : (destructor)DBtoc_dealloc,
+#if (PY_MAJOR_VERSION <= 3)  && (PY_MINOR_VERSION <= 7)
     tp_print          : (printfunc)DBtoc_print,
+#else
+  tp_vectorcall_offset : (printfunc)DBtoc_print,
+#endif
 #if PY_MAJOR_VERSION >= 3
     tp_getattr        : 0,
 #else

Youez - 2016 - github.com/yon3zu
LinuXploit