Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4aeb84

Browse files
committed
Enable CHECK_IMPORT_CASE on Win32.
1 parent 0cf0cfb commit f4aeb84

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

PC/config.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,16 @@ typedef int pid_t;
195195
#endif /* !MS_WIN16 */
196196
#endif /* !MS_WIN32 */
197197

198+
#ifdef MS_WIN32
199+
/* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of
200+
imported modules against case of file; this causes "import String" to fail
201+
with a NameError exception when it finds "string.py". Normally, you set
202+
the environment variable PYTHONCASEOK (to anything) to disable this
203+
feature; to permanently disable it, #undef it here. This only works on
204+
case-preserving filesystems; otherwise you definitely want it off. */
205+
#define CHECK_IMPORT_CASE
206+
#endif
207+
198208
/* Fairly standard from here! */
199209

200210
/* Define if on AIX 3.

0 commit comments

Comments
 (0)