Skip to content

Commit 381216b

Browse files
committed
Do ne sys module flags underscored
1 parent d383850 commit 381216b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Lib/ntpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import genericpath
2121
from genericpath import *
2222

23-
if sys.use_alt_sep:
23+
if sys._use_alt_sep:
2424
sep = '/'
2525
altsep = '\\'
2626
else:

Python/sysmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3163,13 +3163,13 @@ hash_info -- a named tuple with information about the hash algorithm.\n\
31633163
hexversion -- version information encoded as a single integer\n\
31643164
implementation -- Python implementation information.\n\
31653165
int_info -- a named tuple with information about the int implementation.\n\
3166-
is_mingw -- integer value if Python builded with mingw-w64 toolchain\n\
3166+
_is_mingw -- integer value if Python builded with mingw-w64 toolchain\n\
31673167
maxsize -- the largest supported length of containers.\n\
31683168
maxunicode -- the value of the largest Unicode code point\n\
31693169
platform -- platform identifier\n\
31703170
prefix -- prefix used to find the Python library\n\
31713171
thread_info -- a named tuple with information about the thread implementation.\n\
3172-
use_alt_sep -- indicate if need use posix style path setparator for path normalize\n\
3172+
_use_alt_sep -- indicate if need use posix style path setparator for path normalize\n\
31733173
version -- the version of this interpreter as a string\n\
31743174
version_info -- version information as a named tuple\n\
31753175
"
@@ -3647,8 +3647,8 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
36473647
SET_SYS_FROM_STRING("byteorder", "little");
36483648
#endif
36493649

3650-
SET_SYS("is_mingw", PyLong_FromLong(is_mingw_platform()));
3651-
SET_SYS("use_alt_sep", PyLong_FromLong(use_alt_sep()));
3650+
SET_SYS("_is_mingw", PyLong_FromLong(is_mingw_platform()));
3651+
SET_SYS("_use_alt_sep", PyLong_FromLong(use_alt_sep()));
36523652

36533653
#if defined(MS_WINDOWS) && defined(Py_ENABLE_SHARED)
36543654
SET_SYS("dllhandle", PyLong_FromVoidPtr(PyWin_DLLhModule));

mingw_smoketests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import unittest
3131
import sysconfig
3232

33-
if sys.use_alt_sep:
33+
if sys._use_alt_sep:
3434
SEP = "/"
3535
else:
3636
SEP = "\\"

0 commit comments

Comments
 (0)