@@ -299,8 +299,8 @@ process and user.
299
299
300
300
.. function :: getenv(key, default=None)
301
301
302
- Return the value of the environment variable *key * if it exists, or
303
- *default * if it doesn't. *key *, * default * and the result are str . Note that
302
+ Return the value of the environment variable *key * as a string if it exists, or
303
+ *default * if it doesn't. *key * is a string . Note that
304
304
since :func: `getenv ` uses :data: `os.environ `, the mapping of :func: `getenv ` is
305
305
similarly also captured on import, and the function may not reflect
306
306
future environment changes.
@@ -314,8 +314,8 @@ process and user.
314
314
315
315
.. function :: getenvb(key, default=None)
316
316
317
- Return the value of the environment variable *key * if it exists, or
318
- *default * if it doesn't. *key *, * default * and the result are bytes. Note that
317
+ Return the value of the environment variable *key * as bytes if it exists, or
318
+ *default * if it doesn't. *key * must be bytes. Note that
319
319
since :func: `getenvb ` uses :data: `os.environb `, the mapping of :func: `getenvb ` is
320
320
similarly also captured on import, and the function may not reflect
321
321
future environment changes.
0 commit comments