Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
960dcb3f
Commit
960dcb3f
authored
May 04, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
socket: remove pointless setattr() from close()
parent
023c64ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
gevent/socket.py
gevent/socket.py
+1
-5
No files found.
gevent/socket.py
View file @
960dcb3f
...
...
@@ -305,15 +305,11 @@ class socket(object):
self
.
_wait
(
self
.
_read_event
)
return
socket
(
_sock
=
client_socket
),
address
def
close
(
self
,
_closedsocket
=
_closedsocket
,
_delegate_methods
=
_delegate_methods
,
setattr
=
setattr
,
cancel_wait_ex
=
cancel_wait_ex
):
def
close
(
self
,
_closedsocket
=
_closedsocket
,
cancel_wait_ex
=
cancel_wait_ex
):
# This function should not reference any globals. See Python issue #808164.
self
.
hub
.
cancel_wait
(
self
.
_read_event
,
cancel_wait_ex
)
self
.
hub
.
cancel_wait
(
self
.
_write_event
,
cancel_wait_ex
)
self
.
_sock
=
_closedsocket
()
dummy
=
self
.
_sock
.
_dummy
for
method
in
_delegate_methods
:
setattr
(
self
,
method
,
dummy
)
def
connect
(
self
,
address
):
if
self
.
timeout
==
0.0
:
...
...
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