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
46fa48ab
Commit
46fa48ab
authored
Mar 20, 2006
by
Anthony Baxter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace n11n
parent
d5a37549
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Lib/email/__init__.py
Lib/email/__init__.py
+8
-8
Lib/test/test_wait3.py
Lib/test/test_wait3.py
+3
-3
No files found.
Lib/email/__init__.py
View file @
46fa48ab
...
...
@@ -72,14 +72,14 @@ def message_from_file(fp, *args, **kws):
import
sys
class
LazyImporter
(
object
):
def
__init__
(
self
,
module_name
):
self
.
__name__
=
'email.'
+
module_name
def
__getattr__
(
self
,
name
):
__import__
(
self
.
__name__
)
mod
=
sys
.
modules
[
self
.
__name__
]
self
.
__dict__
.
update
(
mod
.
__dict__
)
return
getattr
(
mod
,
name
)
def
__init__
(
self
,
module_name
):
self
.
__name__
=
'email.'
+
module_name
def
__getattr__
(
self
,
name
):
__import__
(
self
.
__name__
)
mod
=
sys
.
modules
[
self
.
__name__
]
self
.
__dict__
.
update
(
mod
.
__dict__
)
return
getattr
(
mod
,
name
)
_LOWERNAMES
=
[
...
...
Lib/test/test_wait3.py
View file @
46fa48ab
...
...
@@ -18,9 +18,9 @@ except AttributeError:
class
Wait3Test
(
ForkWait
):
def
wait_impl
(
self
,
cpid
):
while
1
:
spid
,
status
,
rusage
=
os
.
wait3
(
0
)
if
spid
==
cpid
:
break
spid
,
status
,
rusage
=
os
.
wait3
(
0
)
if
spid
==
cpid
:
break
self
.
assertEqual
(
spid
,
cpid
)
self
.
assertEqual
(
status
,
0
,
"cause = %d, exit = %d"
%
(
status
&
0xff
,
status
>>
8
))
self
.
assertTrue
(
rusage
)
...
...
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