VirtualBox

Changeset 90523 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Aug 5, 2021 9:37:31 AM (4 years ago)
Author:
vboxsync
Message:

libs/xpcom: Added support for running with Python 3.9. bugref:10079

Location:
trunk/src/libs/xpcom18a4/python/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/PyIID.cpp

    r86333 r90523  
    266266        ob_type = GetTypeObject();
    267267#endif
     268#if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */
    268269        _Py_NewReference(this);
     270#endif
    269271        m_iid = riid;
    270272}
  • trunk/src/libs/xpcom18a4/python/src/PyISupports.cpp

    r86333 r90523  
    146146        PR_AtomicIncrement(&cInterfaces);
    147147        PyXPCOM_DLLAddRef();
     148#if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */
    148149        _Py_NewReference(this);
     150#endif
    149151
    150152#ifdef VBOX_DEBUG_LIFETIMES
  • trunk/src/libs/xpcom18a4/python/src/TypeObject.cpp

    r86624 r90523  
    435435        /* Initialize the PyObject part - needed so we can keep instance in a PyDict: */
    436436        ob_type = PyXPCOM_GetInterfaceType();
     437# if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */
    437438        _Py_NewReference(this);
     439# endif
    438440
    439441#endif /* Py_LIMITED_API */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette