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
2ef747cb
Kaydet (Commit)
2ef747cb
authored
Haz 04, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup in packaging: don’t unnecessarily instantiate exceptions
üst
35a4d01a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
dist.py
Lib/packaging/pypi/dist.py
+1
-1
simple.py
Lib/packaging/pypi/simple.py
+1
-1
run.py
Lib/packaging/run.py
+1
-1
test_uninstall.py
Lib/packaging/tests/test_uninstall.py
+1
-1
No files found.
Lib/packaging/pypi/dist.py
Dosyayı görüntüle @
2ef747cb
...
...
@@ -135,7 +135,7 @@ class ReleaseInfo(IndexReference):
not return one existing distribution.
"""
if
len
(
self
.
dists
)
==
0
:
raise
LookupError
()
raise
LookupError
if
dist_type
:
return
self
[
dist_type
]
if
prefer_source
:
...
...
Lib/packaging/pypi/simple.py
Dosyayı görüntüle @
2ef747cb
...
...
@@ -189,7 +189,7 @@ class Crawler(BaseClient):
self
.
_process_index_page
(
predicate
.
name
)
if
predicate
.
name
.
lower
()
not
in
self
.
_projects
:
raise
ProjectNotFound
()
raise
ProjectNotFound
releases
=
self
.
_projects
.
get
(
predicate
.
name
.
lower
())
releases
.
sort_releases
(
prefer_final
=
prefer_final
)
...
...
Lib/packaging/run.py
Dosyayı görüntüle @
2ef747cb
...
...
@@ -383,7 +383,7 @@ def _search(dispatcher, args, **kw):
"""
#opts = _parse_args(args[1:], '', ['simple', 'xmlrpc'])
# 1. what kind of index is requested ? (xmlrpc / simple)
raise
NotImplementedError
()
raise
NotImplementedError
actions
=
[
...
...
Lib/packaging/tests/test_uninstall.py
Dosyayı görüntüle @
2ef747cb
...
...
@@ -111,7 +111,7 @@ class UninstallTestCase(support.TempdirManager,
old
=
os
.
rename
def
_rename
(
source
,
target
):
raise
OSError
()
raise
OSError
os
.
rename
=
_rename
try
:
...
...
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