@@ -304,8 +304,8 @@ process and user.
304
304
305
305
.. function :: getenv(key, default=None)
306
306
307
- Return the value of the environment variable *key * if it exists, or
308
- *default * if it doesn't. *key *, * default * and the result are str . Note that
307
+ Return the value of the environment variable *key * as a string if it exists, or
308
+ *default * if it doesn't. *key * is a string . Note that
309
309
since :func: `getenv ` uses :data: `os.environ `, the mapping of :func: `getenv ` is
310
310
similarly also captured on import, and the function may not reflect
311
311
future environment changes.
@@ -319,8 +319,8 @@ process and user.
319
319
320
320
.. function :: getenvb(key, default=None)
321
321
322
- Return the value of the environment variable *key * if it exists, or
323
- *default * if it doesn't. *key *, * default * and the result are bytes. Note that
322
+ Return the value of the environment variable *key * as bytes if it exists, or
323
+ *default * if it doesn't. *key * must be bytes. Note that
324
324
since :func: `getenvb ` uses :data: `os.environb `, the mapping of :func: `getenvb ` is
325
325
similarly also captured on import, and the function may not reflect
326
326
future environment changes.
0 commit comments