Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
25d5737f
Kaydet (Commit)
25d5737f
authored
Haz 01, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix typos in class names
üst
1256a686
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
simple.py
Lib/packaging/pypi/simple.py
+2
-2
xmlrpc.py
Lib/packaging/pypi/xmlrpc.py
+4
-4
No files found.
Lib/packaging/pypi/simple.py
Dosyayı görüntüle @
25d5737f
"""Spider using the screen-scraping "simple" PyPI API.
"""Spider using the screen-scraping "simple" PyPI API.
This module contains the class
SimpleIndex
Crawler, 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 @@ class Crawler(BaseClient):
...
@@ -178,7 +178,7 @@ class Crawler(BaseClient):
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 Release
s
List object containing
the results.
the results.
"""
"""
predicate
=
get_version_predicate
(
requirements
)
predicate
=
get_version_predicate
(
requirements
)
...
...
Lib/packaging/pypi/xmlrpc.py
Dosyayı görüntüle @
25d5737f
...
@@ -31,11 +31,11 @@ class Client(BaseClient):
...
@@ -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 =
XMLRPC
Client()
>>> client = Client()
>>> client.server_url == DEFAULT_XMLRPC_INDEX_URL
>>> client.server_url == DEFAULT_XMLRPC_INDEX_URL
True
True
>>> client =
XMLRPC
Client("http://someurl/")
>>> client = Client("http://someurl/")
>>> client.server_url
>>> client.server_url
'http://someurl/'
'http://someurl/'
"""
"""
...
@@ -69,7 +69,7 @@ class Client(BaseClient):
...
@@ -69,7 +69,7 @@ class Client(BaseClient):
informations (eg. make a new XML-RPC call).
informations (eg. make a new XML-RPC call).
::
::
>>> client =
XMLRPC
Client()
>>> 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 @@ class Client(BaseClient):
...
@@ -189,7 +189,7 @@ class Client(BaseClient):
If no server proxy is defined yet, creates a new one::
If no server proxy is defined yet, creates a new one::
>>> client =
XmlRpc
Client()
>>> client = Client()
>>> client.proxy()
>>> client.proxy()
<ServerProxy for python.org/pypi>
<ServerProxy for python.org/pypi>
...
...
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