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
7c8cd257
Commit
7c8cd257
authored
Jul 25, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
parents
99f969e7
9228837e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Misc/NEWS
Misc/NEWS
+2
-0
Modules/socketmodule.c
Modules/socketmodule.c
+0
-2
No files found.
Misc/NEWS
View file @
7c8cd257
...
...
@@ -166,6 +166,8 @@ Core and Builtins
Library
-------
-
Issue
#
18549
:
Eliminate
dead
code
in
socket_ntohl
()
-
Issue
#
18530
:
Remove
additional
stat
call
from
posixpath
.
ismount
.
Patch
by
Alex
Gaynor
.
...
...
Modules/socketmodule.c
View file @
7c8cd257
...
...
@@ -4663,8 +4663,6 @@ socket_ntohl(PyObject *self, PyObject *arg)
return
PyErr_Format
(
PyExc_TypeError
,
"expected int/long, %s found"
,
Py_TYPE
(
arg
)
->
tp_name
);
if
(
x
==
(
unsigned
long
)
-
1
&&
PyErr_Occurred
())
return
NULL
;
return
PyLong_FromUnsignedLong
(
ntohl
(
x
));
}
...
...
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