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
a8b5f7d1
Commit
a8b5f7d1
authored
Aug 10, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hard-coded NT constants that are already defined in errno on NT.
Wrap some long lines. Remove unnecessary tuple unpack.
parent
024ef6f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
Lib/asyncore.py
Lib/asyncore.py
+5
-11
No files found.
Lib/asyncore.py
View file @
a8b5f7d1
...
...
@@ -53,15 +53,8 @@ import sys
import
types
import
os
if
os
.
name
==
'nt'
:
EWOULDBLOCK
=
10035
EINPROGRESS
=
10036
EALREADY
=
10037
ECONNRESET
=
10054
ENOTCONN
=
10057
ESHUTDOWN
=
10058
else
:
from
errno
import
EALREADY
,
EINPROGRESS
,
EWOULDBLOCK
,
ECONNRESET
,
ENOTCONN
,
ESHUTDOWN
from
errno
import
EALREADY
,
EINPROGRESS
,
EWOULDBLOCK
,
ECONNRESET
,
\
ENOTCONN
,
ESHUTDOWN
try
:
socket_map
...
...
@@ -264,7 +257,8 @@ class dispatcher:
try
:
self
.
socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
,
self
.
socket
.
getsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
)
|
1
self
.
socket
.
getsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_REUSEADDR
)
|
1
)
except
socket
.
error
:
pass
...
...
@@ -398,7 +392,7 @@ class dispatcher:
self
.
handle_expt
()
def
handle_error
(
self
):
(
file
,
fun
,
line
)
,
t
,
v
,
tbinfo
=
compact_traceback
()
nil
,
t
,
v
,
tbinfo
=
compact_traceback
()
# sometimes a user repr method will crash.
try
:
...
...
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