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
12e533d7
Kaydet (Commit)
12e533d7
authored
Nis 01, 2009
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rip out a useless method that the superclass implements properly.
üst
a7cff023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
_bootstrap.py
Lib/importlib/_bootstrap.py
+0
-19
No files found.
Lib/importlib/_bootstrap.py
Dosyayı görüntüle @
12e533d7
...
...
@@ -475,25 +475,6 @@ class _PyFileLoader(PyLoader):
# Not a property so that it is easy to override.
return
self
.
_find_path
(
imp
.
PY_SOURCE
)
@_check_name
def
get_source
(
self
,
fullname
):
"""Return the source for the module as a string.
Return None if the source is not available. Raise ImportError if the
laoder cannot handle the specified module.
"""
source_path
=
self
.
_source_path
(
name
)
if
source_path
is
None
:
return
None
import
tokenize
with
_closing
(
_io
.
FileIO
(
source_path
,
'r'
))
as
file
:
# Assuming bytes.
encoding
,
lines
=
tokenize
.
detect_encoding
(
file
.
readline
)
# XXX Will fail when passed to compile() if the encoding is
# anything other than UTF-8.
return
open
(
source_path
,
encoding
=
encoding
)
.
read
()
def
get_data
(
self
,
path
):
"""Return the data from path as raw bytes."""
return
_io
.
FileIO
(
path
,
'r'
)
.
read
()
# Assuming bytes.
...
...
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