mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#8603: Add environb to os.__all__
This commit is contained in:
parent
056cb93e7a
commit
70120e202d
1 changed files with 2 additions and 1 deletions
|
@ -533,7 +533,8 @@ if supports_bytes_environ:
|
|||
The optional second argument can specify an alternate default.
|
||||
key, default and the result are bytes."""
|
||||
return environb.get(key, default)
|
||||
__all__.append("getenvb")
|
||||
|
||||
__all__.extend(("environb", "getenvb"))
|
||||
|
||||
def fsencode(value):
|
||||
"""Encode value for use in the file system, environment variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue