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
53e600c2
Kaydet (Commit)
53e600c2
authored
Haz 15, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17177: update checkpyc to stop using imp
üst
ca5ff3a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
checkpyc.py
Tools/scripts/checkpyc.py
+4
-4
No files found.
Tools/scripts/checkpyc.py
Dosyayı görüntüle @
53e600c2
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
import
sys
import
sys
import
os
import
os
from
stat
import
ST_MTIME
from
stat
import
ST_MTIME
import
imp
import
imp
ortlib.util
# PEP 3147 compatibility (PYC Repository Directories)
# PEP 3147 compatibility (PYC Repository Directories)
cache_from_source
=
(
imp
.
cache_from_source
if
hasattr
(
imp
,
'get_tag'
)
else
cache_from_source
=
(
imp
ortlib
.
util
.
cache_from_source
if
sys
.
implementation
.
cache_tag
lambda
path
:
path
+
'c'
)
else
lambda
path
:
path
+
'c'
)
def
main
():
def
main
():
...
@@ -18,7 +18,7 @@ def main():
...
@@ -18,7 +18,7 @@ def main():
silent
=
(
sys
.
argv
[
1
]
==
'-s'
)
silent
=
(
sys
.
argv
[
1
]
==
'-s'
)
else
:
else
:
verbose
=
silent
=
False
verbose
=
silent
=
False
MAGIC
=
imp
.
get_magic
()
MAGIC
=
imp
ortlib
.
util
.
MAGIC_NUMBER
if
not
silent
:
if
not
silent
:
print
(
'Using MAGIC word'
,
repr
(
MAGIC
))
print
(
'Using MAGIC word'
,
repr
(
MAGIC
))
for
dirname
in
sys
.
path
:
for
dirname
in
sys
.
path
:
...
...
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