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
b4b929ec
Kaydet (Commit)
b4b929ec
authored
Kas 13, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
no need to translate newlines in python code anymore
üst
aeaa5925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
_bootstrap.py
Lib/importlib/_bootstrap.py
+0
-15
No files found.
Lib/importlib/_bootstrap.py
Dosyayı görüntüle @
b4b929ec
...
@@ -344,21 +344,6 @@ class PyLoader:
...
@@ -344,21 +344,6 @@ class PyLoader:
message
=
"a source path must exist to load {0}"
.
format
(
fullname
)
message
=
"a source path must exist to load {0}"
.
format
(
fullname
)
raise
ImportError
(
message
)
raise
ImportError
(
message
)
source
=
self
.
get_data
(
source_path
)
source
=
self
.
get_data
(
source_path
)
# Convert to universal newlines.
line_endings
=
b
'
\n
'
for
index
,
c
in
enumerate
(
source
):
if
c
==
ord
(
b
'
\n
'
):
break
elif
c
==
ord
(
b
'
\r
'
):
line_endings
=
b
'
\r
'
try
:
if
source
[
index
+
1
]
==
ord
(
b
'
\n
'
):
line_endings
+=
b
'
\n
'
except
IndexError
:
pass
break
if
line_endings
!=
b
'
\n
'
:
source
=
source
.
replace
(
line_endings
,
b
'
\n
'
)
return
compile
(
source
,
source_path
,
'exec'
,
dont_inherit
=
True
)
return
compile
(
source
,
source_path
,
'exec'
,
dont_inherit
=
True
)
# Never use in implementing import! Imports code within the method.
# Never use in implementing import! Imports code within the method.
...
...
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