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

Skip to content

Commit 3b97c9c

Browse files
committed
py/mpconfig: Prefix module names with u.
This was done for some comments already, but not all of them.
1 parent d73d4e1 commit 3b97c9c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

py/mpconfig.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ typedef double mp_float_t;
11391139
#define MICROPY_PY_ATTRTUPLE (1)
11401140
#endif
11411141

1142-
// Whether to provide "collections" module
1142+
// Whether to provide "ucollections" module
11431143
#ifndef MICROPY_PY_COLLECTIONS
11441144
#define MICROPY_PY_COLLECTIONS (1)
11451145
#endif
@@ -1149,7 +1149,7 @@ typedef double mp_float_t;
11491149
#define MICROPY_PY_COLLECTIONS_DEQUE (0)
11501150
#endif
11511151

1152-
// Whether to provide "collections.OrderedDict" type
1152+
// Whether to provide "ucollections.OrderedDict" type
11531153
#ifndef MICROPY_PY_COLLECTIONS_ORDEREDDICT
11541154
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (0)
11551155
#endif
@@ -1214,12 +1214,12 @@ typedef double mp_float_t;
12141214
#define MICROPY_PY_GC_COLLECT_RETVAL (0)
12151215
#endif
12161216

1217-
// Whether to provide "io" module
1217+
// Whether to provide "uio" module
12181218
#ifndef MICROPY_PY_IO
12191219
#define MICROPY_PY_IO (1)
12201220
#endif
12211221

1222-
// Whether to provide "io.IOBase" class to support user streams
1222+
// Whether to provide "uio.IOBase" class to support user streams
12231223
#ifndef MICROPY_PY_IO_IOBASE
12241224
#define MICROPY_PY_IO_IOBASE (0)
12251225
#endif
@@ -1235,73 +1235,73 @@ typedef double mp_float_t;
12351235
#define MICROPY_PY_IO_RESOURCE_STREAM (0)
12361236
#endif
12371237

1238-
// Whether to provide "io.FileIO" class
1238+
// Whether to provide "uio.FileIO" class
12391239
#ifndef MICROPY_PY_IO_FILEIO
12401240
#define MICROPY_PY_IO_FILEIO (0)
12411241
#endif
12421242

1243-
// Whether to provide "io.BytesIO" class
1243+
// Whether to provide "uio.BytesIO" class
12441244
#ifndef MICROPY_PY_IO_BYTESIO
12451245
#define MICROPY_PY_IO_BYTESIO (1)
12461246
#endif
12471247

1248-
// Whether to provide "io.BufferedWriter" class
1248+
// Whether to provide "uio.BufferedWriter" class
12491249
#ifndef MICROPY_PY_IO_BUFFEREDWRITER
12501250
#define MICROPY_PY_IO_BUFFEREDWRITER (0)
12511251
#endif
12521252

1253-
// Whether to provide "struct" module
1253+
// Whether to provide "ustruct" module
12541254
#ifndef MICROPY_PY_STRUCT
12551255
#define MICROPY_PY_STRUCT (1)
12561256
#endif
12571257

1258-
// Whether to provide "sys" module
1258+
// Whether to provide "usys" module
12591259
#ifndef MICROPY_PY_SYS
12601260
#define MICROPY_PY_SYS (1)
12611261
#endif
12621262

1263-
// Whether to provide "sys.maxsize" constant
1263+
// Whether to provide "usys.maxsize" constant
12641264
#ifndef MICROPY_PY_SYS_MAXSIZE
12651265
#define MICROPY_PY_SYS_MAXSIZE (0)
12661266
#endif
12671267

1268-
// Whether to provide "sys.modules" dictionary
1268+
// Whether to provide "usys.modules" dictionary
12691269
#ifndef MICROPY_PY_SYS_MODULES
12701270
#define MICROPY_PY_SYS_MODULES (1)
12711271
#endif
12721272

1273-
// Whether to provide "sys.exc_info" function
1273+
// Whether to provide "usys.exc_info" function
12741274
// Avoid enabling this, this function is Python2 heritage
12751275
#ifndef MICROPY_PY_SYS_EXC_INFO
12761276
#define MICROPY_PY_SYS_EXC_INFO (0)
12771277
#endif
12781278

1279-
// Whether to provide "sys.exit" function
1279+
// Whether to provide "usys.exit" function
12801280
#ifndef MICROPY_PY_SYS_EXIT
12811281
#define MICROPY_PY_SYS_EXIT (1)
12821282
#endif
12831283

1284-
// Whether to provide "sys.atexit" function (MicroPython extension)
1284+
// Whether to provide "usys.atexit" function (MicroPython extension)
12851285
#ifndef MICROPY_PY_SYS_ATEXIT
12861286
#define MICROPY_PY_SYS_ATEXIT (0)
12871287
#endif
12881288

1289-
// Whether to provide "sys.settrace" function
1289+
// Whether to provide "usys.settrace" function
12901290
#ifndef MICROPY_PY_SYS_SETTRACE
12911291
#define MICROPY_PY_SYS_SETTRACE (0)
12921292
#endif
12931293

1294-
// Whether to provide "sys.getsizeof" function
1294+
// Whether to provide "usys.getsizeof" function
12951295
#ifndef MICROPY_PY_SYS_GETSIZEOF
12961296
#define MICROPY_PY_SYS_GETSIZEOF (0)
12971297
#endif
12981298

1299-
// Whether to provide sys.{stdin,stdout,stderr} objects
1299+
// Whether to provide usys.{stdin,stdout,stderr} objects
13001300
#ifndef MICROPY_PY_SYS_STDFILES
13011301
#define MICROPY_PY_SYS_STDFILES (0)
13021302
#endif
13031303

1304-
// Whether to provide sys.{stdin,stdout,stderr}.buffer object
1304+
// Whether to provide usys.{stdin,stdout,stderr}.buffer object
13051305
// This is implemented per-port
13061306
#ifndef MICROPY_PY_SYS_STDIO_BUFFER
13071307
#define MICROPY_PY_SYS_STDIO_BUFFER (0)

0 commit comments

Comments
 (0)