diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-04-04 20:01:17 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-04-09 16:43:34 +0200 |
commit | c4fa6efa67775a6b333a4a5aa873b5cc24a4f7bc (patch) | |
tree | d8977f4c2c97287865a2407b25c0327c49bbe17c /pyuno/inc | |
parent | 2d64651e889e55f63c90ded24e63e17eaf52102f (diff) |
pyuno,*: kill Python 2 support with fire
Python 2 support was retained for use with --enable-python=system
on RHEL7 and SLES. The time has arrived to remove it.
Some .py files that were imported from third parties are not changed to
enable easier replacement with updated versions if necessary.
solenv/gdb should continue to support Python 2.
bin/get-bugzilla-attachments-by-mimetype requires Python 2 to access
Launchpad.
Change-Id: I26414ae8e9f8402c90336af82020135685694217
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91697
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'pyuno/inc')
-rw-r--r-- | pyuno/inc/pyuno.hxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pyuno/inc/pyuno.hxx b/pyuno/inc/pyuno.hxx index c190cfc348c2..f7cab36c7327 100644 --- a/pyuno/inc/pyuno.hxx +++ b/pyuno/inc/pyuno.hxx @@ -53,12 +53,7 @@ namespace com::sun::star::uno { template <typename > class Reference; } the global interpreter lock is held */ -extern "C" LO_DLLPUBLIC_PYUNO -#if PY_MAJOR_VERSION >= 3 - PyObject* PyInit_pyuno(); -#else - void initpyuno(); -#endif +extern "C" LO_DLLPUBLIC_PYUNO PyObject* PyInit_pyuno(); namespace pyuno { |