]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/_helpers.c
_helpers: remove argv mangling on python 3.9
[bup.git] / lib / bup / _helpers.c
index f47de73a07d0e4a2734f88caa13bb0fc392f6280..5f07d446c703444d42edda0376209b3195cfc4e0 100644 (file)
@@ -353,7 +353,7 @@ static PyObject *bup_cat_bytes(PyObject *self, PyObject *args)
 
 
 // Probably we should use autoconf or something and set HAVE_PY_GETARGCARGV...
-#if __WIN32__ || __CYGWIN__
+#if __WIN32__ || __CYGWIN__ || PY_VERSION_HEX >= 0x03090000
 
 // There's no 'ps' on win32 anyway, and Py_GetArgcArgv() isn't available.
 static void unpythonize_argv(void) { }