mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
SF patch #460805 by Chris Gonnerman: Support for unsetenv()
This adds unsetenv to posix, and uses it in the __delitem__ method of os.environ. (XXX Should we change the preferred name for putenv to setenv, for consistency?)
This commit is contained in:
parent
b6c1d5239c
commit
c524d952da
6 changed files with 81 additions and 19 deletions
|
@ -1411,7 +1411,7 @@ AC_CHECK_FUNCS(alarm chown chroot clock confstr ctermid ctermid_r execv \
|
|||
setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
|
||||
sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
|
||||
tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
|
||||
truncate uname waitpid _getpty getpriority)
|
||||
truncate uname unsetenv waitpid _getpty getpriority)
|
||||
|
||||
# check for openpty and forkpty
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue