mirror of https://github.com/python/cpython.git
Fix typos in class names
This commit is contained in:
parent
1256a6864e
commit
25d5737f15
|
@ -1,6 +1,6 @@
|
||||||
"""Spider using the screen-scraping "simple" PyPI API.
|
"""Spider using the screen-scraping "simple" PyPI API.
|
||||||
|
|
||||||
This module contains the class SimpleIndexCrawler, a simple spider that
|
This module contains the class Crawler, a simple spider that
|
||||||
can be used to find and retrieve distributions from a project index
|
can be used to find and retrieve distributions from a project index
|
||||||
(like the Python Package Index), using its so-called simple API (see
|
(like the Python Package Index), using its so-called simple API (see
|
||||||
reference implementation available at http://pypi.python.org/simple/).
|
reference implementation available at http://pypi.python.org/simple/).
|
||||||
|
@ -178,7 +178,7 @@ def search_projects(self, name=None, **kwargs):
|
||||||
|
|
||||||
def get_releases(self, requirements, prefer_final=None,
|
def get_releases(self, requirements, prefer_final=None,
|
||||||
force_update=False):
|
force_update=False):
|
||||||
"""Search for releases and return a ReleaseList object containing
|
"""Search for releases and return a ReleasesList object containing
|
||||||
the results.
|
the results.
|
||||||
"""
|
"""
|
||||||
predicate = get_version_predicate(requirements)
|
predicate = get_version_predicate(requirements)
|
||||||
|
|
|
@ -31,11 +31,11 @@ class Client(BaseClient):
|
||||||
If no server_url is specified, use the default PyPI XML-RPC URL,
|
If no server_url is specified, use the default PyPI XML-RPC URL,
|
||||||
defined in the DEFAULT_XMLRPC_INDEX_URL constant::
|
defined in the DEFAULT_XMLRPC_INDEX_URL constant::
|
||||||
|
|
||||||
>>> client = XMLRPCClient()
|
>>> client = Client()
|
||||||
>>> client.server_url == DEFAULT_XMLRPC_INDEX_URL
|
>>> client.server_url == DEFAULT_XMLRPC_INDEX_URL
|
||||||
True
|
True
|
||||||
|
|
||||||
>>> client = XMLRPCClient("http://someurl/")
|
>>> client = Client("http://someurl/")
|
||||||
>>> client.server_url
|
>>> client.server_url
|
||||||
'http://someurl/'
|
'http://someurl/'
|
||||||
"""
|
"""
|
||||||
|
@ -69,7 +69,7 @@ def get_releases(self, requirements, prefer_final=None, show_hidden=True,
|
||||||
informations (eg. make a new XML-RPC call).
|
informations (eg. make a new XML-RPC call).
|
||||||
::
|
::
|
||||||
|
|
||||||
>>> client = XMLRPCClient()
|
>>> client = Client()
|
||||||
>>> client.get_releases('Foo')
|
>>> client.get_releases('Foo')
|
||||||
['1.1', '1.2', '1.3']
|
['1.1', '1.2', '1.3']
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ def proxy(self):
|
||||||
|
|
||||||
If no server proxy is defined yet, creates a new one::
|
If no server proxy is defined yet, creates a new one::
|
||||||
|
|
||||||
>>> client = XmlRpcClient()
|
>>> client = Client()
|
||||||
>>> client.proxy()
|
>>> client.proxy()
|
||||||
<ServerProxy for python.org/pypi>
|
<ServerProxy for python.org/pypi>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue