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
bf9c021d
Kaydet (Commit)
bf9c021d
authored
13 years ago
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #12536: Unused logger removed from lib2to3.
üst
07b35371
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
fixer_base.py
Lib/lib2to3/fixer_base.py
+1
-3
No files found.
Lib/lib2to3/fixer_base.py
Dosyayı görüntüle @
bf9c021d
...
...
@@ -27,7 +27,6 @@ class BaseFix(object):
pattern_tree
=
None
# Tree representation of the pattern
options
=
None
# Options object passed to initializer
filename
=
None
# The filename (set by set_filename)
logger
=
None
# A logger (set by set_filename)
numbers
=
itertools
.
count
(
1
)
# For new_name()
used_names
=
set
()
# A set of all used NAMEs
order
=
"post"
# Does the fixer prefer pre- or post-order traversal
...
...
@@ -70,12 +69,11 @@ class BaseFix(object):
with_tree
=
True
)
def
set_filename
(
self
,
filename
):
"""Set the filename
, and a logger derived from it
.
"""Set the filename.
The main refactoring tool should call this.
"""
self
.
filename
=
filename
self
.
logger
=
logging
.
getLogger
(
filename
)
def
match
(
self
,
node
):
"""Returns match for a given parse tree node.
...
...
This diff is collapsed.
Click to expand it.
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