Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ad34ef86
Commit
ad34ef86
authored
May 07, 2013
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix os.__all__ to is passes test___all__
parent
577abe16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Lib/os.py
Lib/os.py
+8
-6
No files found.
Lib/os.py
View file @
ad34ef86
...
...
@@ -686,19 +686,16 @@ class _Environ(MutableMapping):
self
[
key
]
=
value
return
self
[
key
]
# if putenv or unsetenv exist they should already be in __all__
try
:
_putenv
=
putenv
except
NameError
:
_putenv
=
lambda
key
,
value
:
None
else
:
__all__
.
append
(
"putenv"
)
try
:
_unsetenv
=
unsetenv
except
NameError
:
_unsetenv
=
lambda
key
:
_putenv
(
key
,
""
)
else
:
__all__
.
append
(
"unsetenv"
)
def
_createenviron
():
if
name
==
'nt'
:
...
...
@@ -883,6 +880,10 @@ If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return
_spawnvef
(
mode
,
file
,
args
,
env
,
execvpe
)
__all__
.
extend
([
"spawnv"
,
"spawnve"
,
"spawnvp"
,
"spawnvpe"
])
if
_exists
(
"spawnv"
):
# These aren't supplied by the basic Windows code
# but can be easily implemented in Python
...
...
@@ -908,7 +909,7 @@ otherwise return -SIG, where SIG is the signal that killed it. """
return
spawnve
(
mode
,
file
,
args
[:
-
1
],
env
)
__all__
.
extend
([
"spawn
v"
,
"spawnve"
,
"spawnl"
,
"spawnle"
,
])
__all__
.
extend
([
"spawn
l"
,
"spawnle"
])
if
_exists
(
"spawnvp"
):
...
...
@@ -936,7 +937,8 @@ otherwise return -SIG, where SIG is the signal that killed it. """
return
spawnvpe
(
mode
,
file
,
args
[:
-
1
],
env
)
__all__
.
extend
([
"spawnvp"
,
"spawnvpe"
,
"spawnlp"
,
"spawnlpe"
,])
__all__
.
extend
([
"spawnlp"
,
"spawnlpe"
])
import
copyreg
as
_copyreg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment