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
ba66c228
Kaydet (Commit)
ba66c228
authored
Eyl 25, 2012
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
switch assertion to an explicit ValueError
üst
0dea936e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fixer_util.py
Lib/lib2to3/fixer_util.py
+2
-2
refactor.py
Lib/lib2to3/refactor.py
+1
-1
No files found.
Lib/lib2to3/fixer_util.py
Dosyayı görüntüle @
ba66c228
...
...
@@ -274,9 +274,9 @@ def find_root(node):
"""Find the top level namespace."""
# Scamper up to the top level namespace
while
node
.
type
!=
syms
.
file_input
:
assert
node
.
parent
,
"Tree is insane! root found before "
\
"file_input node was found."
node
=
node
.
parent
if
not
node
:
raise
ValueError
(
"root found before file_input node was found."
)
return
node
def
does_tree_import
(
package
,
name
,
node
):
...
...
Lib/lib2to3/refactor.py
Dosyayı görüntüle @
ba66c228
...
...
@@ -445,7 +445,7 @@ class RefactoringTool(object):
try
:
find_root
(
node
)
except
Assertion
Error
:
except
Value
Error
:
# this node has been cut off from a
# previous transformation ; skip
continue
...
...
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