@@ -291,8 +291,8 @@ process and user.
291
291
292
292
.. function :: getenv(key, default=None)
293
293
294
- Return the value of the environment variable *key * if it exists, or
295
- *default * if it doesn't. *key *, * default * and the result are str . Note that
294
+ Return the value of the environment variable *key * as a string if it exists, or
295
+ *default * if it doesn't. *key * is a string . Note that
296
296
since :func: `getenv ` uses :data: `os.environ `, the mapping of :func: `getenv ` is
297
297
similarly also captured on import, and the function may not reflect
298
298
future environment changes.
@@ -306,8 +306,8 @@ process and user.
306
306
307
307
.. function :: getenvb(key, default=None)
308
308
309
- Return the value of the environment variable *key * if it exists, or
310
- *default * if it doesn't. *key *, * default * and the result are bytes. Note that
309
+ Return the value of the environment variable *key * as bytes if it exists, or
310
+ *default * if it doesn't. *key * must be bytes. Note that
311
311
since :func: `getenvb ` uses :data: `os.environb `, the mapping of :func: `getenvb ` is
312
312
similarly also captured on import, and the function may not reflect
313
313
future environment changes.
0 commit comments