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
f4604d6d
Commit
f4604d6d
authored
Jun 03, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
f22e3608
29f25690
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
13 deletions
+18
-13
Doc/library/asyncio-sync.rst
Doc/library/asyncio-sync.rst
+1
-1
Doc/library/marshal.rst
Doc/library/marshal.rst
+1
-1
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
Lib/asyncio/locks.py
Lib/asyncio/locks.py
+1
-1
Lib/trace.py
Lib/trace.py
+1
-1
Lib/urllib/request.py
Lib/urllib/request.py
+11
-6
Misc/NEWS
Misc/NEWS
+1
-1
Python/symtable.c
Python/symtable.c
+1
-1
No files found.
Doc/library/asyncio-sync.rst
View file @
f4604d6d
...
...
@@ -52,7 +52,7 @@ Lock
:meth:`acquire` is a coroutine and should be called with ``yield from``.
Locks also support the context management protocol. ``(yield from lock)``
should be used as context manager expression.
should be used as
the
context manager expression.
This class is :ref:`not thread safe <asyncio-multithreading>`.
...
...
Doc/library/marshal.rst
View file @
f4604d6d
...
...
@@ -40,7 +40,7 @@ this module. The following types are supported: booleans, integers, floating
point numbers, complex numbers, strings, bytes, bytearrays, tuples, lists, sets,
frozensets, dictionaries, and code objects, where it should be understood that
tuples, lists, sets, frozensets and dictionaries are only supported as long as
the values contained therein are themselves supported.
the values contained therein are themselves supported.
The
singletons :const:`None`, :const:`Ellipsis` and :exc:`StopIteration` can also be
marshalled and unmarshalled.
For format *version* lower than 3, recursive lists, sets and dictionaries cannot
...
...
Doc/library/urllib.request.rst
View file @
f4604d6d
...
...
@@ -59,7 +59,7 @@ The :mod:`urllib.request` module defines the following functions:
The *cadefault* parameter is ignored.
This function always returns an object which can work as
This function always returns an object which can work as
a
:term:`context manager` and has methods such as
* :meth:`~urllib.response.addinfourl.geturl` --- return the URL of the resource retrieved,
...
...
Lib/asyncio/locks.py
View file @
f4604d6d
...
...
@@ -111,7 +111,7 @@ class Lock(_ContextManagerMixin):
acquire() is a coroutine and should be called with 'yield from'.
Locks also support the context management protocol. '(yield from lock)'
should be used as context manager expression.
should be used as
the
context manager expression.
Usage:
...
...
Lib/trace.py
View file @
f4604d6d
...
...
@@ -224,7 +224,7 @@ class CoverageResults:
:param show_missing: Show lines that had no hits.
:param summary: Include coverage summary per module.
:param coverdir: If None, the results of each module are placed in it
'
s
:param coverdir: If None, the results of each module are placed in its
directory, otherwise it is included in the directory
specified.
"""
...
...
Lib/urllib/request.py
View file @
f4604d6d
...
...
@@ -172,8 +172,8 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
The *cadefault* parameter is ignored.
For http and https urls, this function returns a http.client.HTTPResponse
object which has the following HTTPResponse Objects methods:
This function always returns an object which can work as a context
manager and has methods such as
* geturl() - return the URL of the resource retrieved, commonly used to
determine if a redirect was followed
...
...
@@ -185,12 +185,17 @@ def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
* getcode() - return the HTTP status code of the response. Raises URLError
on errors.
For ftp, file, and data urls and requests explicitly handled by legacy
For HTTP and HTTPS URLs, this function returns a http.client.HTTPResponse
object slightly modified. In addition to the three new methods above, the
msg attribute contains the same information as the reason attribute ---
the reason phrase returned by the server --- instead of the response
headers as it is specified in the documentation for HTTPResponse.
For FTP, file, and data URLs and requests explicitly handled by legacy
URLopener and FancyURLopener classes, this function returns a
urllib.response.addinfourl object which can work as context manager and
also support the geturl(), info(), getcode() methods listed above.
urllib.response.addinfourl object.
Note that
*None&
may be returned if no handler handles the request (though
Note that
None
may be returned if no handler handles the request (though
the default installed global OpenerDirector uses UnknownHandler to ensure
this never happens).
...
...
Misc/NEWS
View file @
f4604d6d
...
...
@@ -8520,7 +8520,7 @@ Library
-
Issue
#
16176
:
Properly
identify
Windows
8
via
platform
.
platform
()
-
Issue
#
16088
:
BaseHTTPRequestHandler
's send_error method includes a
Content-Length header in it
'
s
response
now
.
Patch
by
Antoine
Pitrou
.
Content-Length header in its response now. Patch by Antoine Pitrou.
- Issue #16114: The subprocess module no longer provides a misleading error
message stating that args[0] did not exist when either the cwd or executable
...
...
Python/symtable.c
View file @
f4604d6d
...
...
@@ -854,7 +854,7 @@ analyze_child_block(PySTEntryObject *entry, PyObject *bound, PyObject *free,
/* Copy the bound and global dictionaries.
These dictionar
y
are used by all blocks enclosed by the
These dictionar
ies
are used by all blocks enclosed by the
current block. The analyze_block() call modifies these
dictionaries.
...
...
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