#8603: Add environb to os.__all__

This commit is contained in:
Victor Stinner 2010-07-29 17:19:38 +00:00
parent 056cb93e7a
commit 70120e202d

View file

@ -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