]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#8603: Add environb to os.__all__
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 29 Jul 2010 17:19:38 +0000 (17:19 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 29 Jul 2010 17:19:38 +0000 (17:19 +0000)
Lib/os.py

index 55e7fc27c5aafbcd935bea14ff4b5a58440ac515..c7abc2a18e53820b0fd01ee1fa877fa3b5e5a25d 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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