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
45438465
Kaydet (Commit)
45438465
authored
Şub 07, 2011
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#11132: pass optimize parameter to recursive call in compileall.compile_dir(). Reviewed by Eric A.
üst
ca583b66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
compileall.py
Lib/compileall.py
+1
-1
test_compileall.py
Lib/test/test_compileall.py
+10
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/compileall.py
Dosyayı görüntüle @
45438465
...
@@ -58,7 +58,7 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
...
@@ -58,7 +58,7 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
elif
(
maxlevels
>
0
and
name
!=
os
.
curdir
and
name
!=
os
.
pardir
and
elif
(
maxlevels
>
0
and
name
!=
os
.
curdir
and
name
!=
os
.
pardir
and
os
.
path
.
isdir
(
fullname
)
and
not
os
.
path
.
islink
(
fullname
)):
os
.
path
.
isdir
(
fullname
)
and
not
os
.
path
.
islink
(
fullname
)):
if
not
compile_dir
(
fullname
,
maxlevels
-
1
,
dfile
,
force
,
rx
,
if
not
compile_dir
(
fullname
,
maxlevels
-
1
,
dfile
,
force
,
rx
,
quiet
,
legacy
):
quiet
,
legacy
,
optimize
):
success
=
0
success
=
0
return
success
return
success
...
...
Lib/test/test_compileall.py
Dosyayı görüntüle @
45438465
...
@@ -24,6 +24,10 @@ class CompileallTests(unittest.TestCase):
...
@@ -24,6 +24,10 @@ class CompileallTests(unittest.TestCase):
self
.
source_path2
=
os
.
path
.
join
(
self
.
directory
,
'_test2.py'
)
self
.
source_path2
=
os
.
path
.
join
(
self
.
directory
,
'_test2.py'
)
self
.
bc_path2
=
imp
.
cache_from_source
(
self
.
source_path2
)
self
.
bc_path2
=
imp
.
cache_from_source
(
self
.
source_path2
)
shutil
.
copyfile
(
self
.
source_path
,
self
.
source_path2
)
shutil
.
copyfile
(
self
.
source_path
,
self
.
source_path2
)
self
.
subdirectory
=
os
.
path
.
join
(
self
.
directory
,
'_subdir'
)
os
.
mkdir
(
self
.
subdirectory
)
self
.
source_path3
=
os
.
path
.
join
(
self
.
subdirectory
,
'_test3.py'
)
shutil
.
copyfile
(
self
.
source_path
,
self
.
source_path3
)
def
tearDown
(
self
):
def
tearDown
(
self
):
shutil
.
rmtree
(
self
.
directory
)
shutil
.
rmtree
(
self
.
directory
)
...
@@ -96,6 +100,12 @@ class CompileallTests(unittest.TestCase):
...
@@ -96,6 +100,12 @@ class CompileallTests(unittest.TestCase):
cached
=
imp
.
cache_from_source
(
self
.
source_path
,
cached
=
imp
.
cache_from_source
(
self
.
source_path
,
debug_override
=
not
optimize
)
debug_override
=
not
optimize
)
self
.
assertTrue
(
os
.
path
.
isfile
(
cached
))
self
.
assertTrue
(
os
.
path
.
isfile
(
cached
))
cached2
=
imp
.
cache_from_source
(
self
.
source_path2
,
debug_override
=
not
optimize
)
self
.
assertTrue
(
os
.
path
.
isfile
(
cached2
))
cached3
=
imp
.
cache_from_source
(
self
.
source_path3
,
debug_override
=
not
optimize
)
self
.
assertTrue
(
os
.
path
.
isfile
(
cached3
))
class
EncodingTest
(
unittest
.
TestCase
):
class
EncodingTest
(
unittest
.
TestCase
):
...
...
Misc/ACKS
Dosyayı görüntüle @
45438465
...
@@ -843,6 +843,7 @@ James Thomas
...
@@ -843,6 +843,7 @@ James Thomas
Robin Thomas
Robin Thomas
Jeremy Thurgood
Jeremy Thurgood
Eric Tiedemann
Eric Tiedemann
July Tikhonov
Tracy Tims
Tracy Tims
Oren Tirosh
Oren Tirosh
Jason Tishler
Jason Tishler
...
...
Misc/NEWS
Dosyayı görüntüle @
45438465
...
@@ -18,6 +18,9 @@ Core and Builtins
...
@@ -18,6 +18,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #11132: Fix passing of "optimize" parameter when recursing
in compileall.compile_dir().
- Issue #11110: Fix a potential decref of a NULL in sqlite3.
- Issue #11110: Fix a potential decref of a NULL in sqlite3.
- Issue #8275: Fix passing of callback arguments with ctypes under Win64.
- Issue #8275: Fix passing of callback arguments with ctypes under Win64.
...
...
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