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
f9fdfa7c
Commit
f9fdfa7c
authored
Sep 11, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.4
parents
dddfffed
ec1a498a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Misc/NEWS
Misc/NEWS
+6
-0
Modules/socketmodule.c
Modules/socketmodule.c
+1
-3
No files found.
Misc/NEWS
View file @
f9fdfa7c
...
@@ -14,6 +14,12 @@ Core and Builtins
...
@@ -14,6 +14,12 @@ Core and Builtins
Library
Library
-------
-------
- Issue #24684: socket.socket.getaddrinfo() now calls
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn'
t
return
a
byte
string
.
The
encoder
of
the
IDNA
codec
is
now
called
directly
instead
of
calling
the
encode
()
method
of
the
string
.
-
Issue
#
25060
:
Correctly
compute
stack
usage
of
the
BUILD_MAP
opcode
.
-
Issue
#
25060
:
Correctly
compute
stack
usage
of
the
BUILD_MAP
opcode
.
-
Issue
#
24857
:
Comparing
call_args
to
a
long
sequence
now
correctly
returns
a
-
Issue
#
24857
:
Comparing
call_args
to
a
long
sequence
now
correctly
returns
a
...
...
Modules/socketmodule.c
View file @
f9fdfa7c
...
@@ -5513,9 +5513,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
...
@@ -5513,9 +5513,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
if
(
hobj
==
Py_None
)
{
if
(
hobj
==
Py_None
)
{
hptr
=
NULL
;
hptr
=
NULL
;
}
else
if
(
PyUnicode_Check
(
hobj
))
{
}
else
if
(
PyUnicode_Check
(
hobj
))
{
_Py_IDENTIFIER
(
encode
);
idna
=
PyUnicode_AsEncodedString
(
hobj
,
"idna"
,
NULL
);
idna
=
_PyObject_CallMethodId
(
hobj
,
&
PyId_encode
,
"s"
,
"idna"
);
if
(
!
idna
)
if
(
!
idna
)
return
NULL
;
return
NULL
;
assert
(
PyBytes_Check
(
idna
));
assert
(
PyBytes_Check
(
idna
));
...
...
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