diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-21 16:19:10 +0100 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-21 16:19:10 +0100 |
commit | 8531989aa308c3953619aafa8ad9c1106911ceca (patch) | |
tree | 0b0453db5185490940220ba4145d700a88d83d80 /Python/sysmodule.c | |
parent | de4652929a2b4d49cab4b20e4afb9bc6a479bfbd (diff) | |
download | cpython-8531989aa308c3953619aafa8ad9c1106911ceca.tar.gz |
Issue #16136: Remove VMS support and VMS-related code
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index cf580f1040..976d5a0c37 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -32,10 +32,6 @@ extern void *PyWin_DLLhModule; extern const char *PyWin_DLLVersionString; #endif -#ifdef __VMS -#include <unixlib.h> -#endif - #ifdef HAVE_LANGINFO_H #include <locale.h> #include <langinfo.h> @@ -1867,22 +1863,7 @@ makeargvobject(int argc, wchar_t **argv) if (av != NULL) { int i; for (i = 0; i < argc; i++) { -#ifdef __VMS - PyObject *v; - - /* argv[0] is the script pathname if known */ - if (i == 0) { - char* fn = decc$translate_vms(argv[0]); - if ((fn == (char *)0) || fn == (char *)-1) - v = PyUnicode_FromString(argv[0]); - else - v = PyUnicode_FromString( - decc$translate_vms(argv[0])); - } else - v = PyUnicode_FromString(argv[i]); -#else PyObject *v = PyUnicode_FromWideChar(argv[i], -1); -#endif if (v == NULL) { Py_DECREF(av); av = NULL; |