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
0aa6e1b8
Kaydet (Commit)
0aa6e1b8
authored
May 10, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the dircache module for 3.0.
üst
10f5db64
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
5 deletions
+19
-5
dircache.rst
Doc/library/dircache.rst
+6
-0
dircache.py
Lib/dircache.py
+3
-0
regrtest.py
Lib/test/regrtest.py
+2
-1
test_dircache.py
Lib/test/test_dircache.py
+7
-3
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
No files found.
Doc/library/dircache.rst
Dosyayı görüntüle @
0aa6e1b8
...
...
@@ -4,6 +4,12 @@
.. module:: dircache
:synopsis: Return directory listing, with cache mechanism.
:deprecated:
.. deprecated:: 2.6
The dircache module has been removed in Python 3.0.
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
...
...
Lib/dircache.py
Dosyayı görüntüle @
0aa6e1b8
...
...
@@ -3,6 +3,9 @@
The listdir() routine returns a sorted list of the files in a directory,
using a cache to avoid reading the directory more often than necessary.
The annotate() routine appends slashes to directories."""
from
warnings
import
warnpy3k
warnpy3k
(
"the dircache module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
os
...
...
Lib/test/regrtest.py
Dosyayı görüntüle @
0aa6e1b8
...
...
@@ -678,7 +678,8 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
def
dash_R_cleanup
(
fs
,
ps
,
pic
,
abcs
):
import
gc
,
copy_reg
import
_strptime
,
linecache
,
dircache
import
_strptime
,
linecache
dircache
=
test_support
.
import_module
(
'dircache'
,
deprecated
=
True
)
import
urlparse
,
urllib
,
urllib2
,
mimetypes
,
doctest
import
struct
,
filecmp
from
distutils.dir_util
import
_path_created
...
...
Lib/test/test_dircache.py
Dosyayı görüntüle @
0aa6e1b8
...
...
@@ -4,8 +4,9 @@
"""
import
unittest
from
test.test_support
import
run_unittest
,
TESTFN
import
dircache
,
os
,
time
,
sys
,
tempfile
from
test.test_support
import
run_unittest
,
TESTFN
,
import_module
dircache
=
import_module
(
'dircache'
,
deprecated
=
True
)
import
os
,
time
,
sys
,
tempfile
class
DircacheTests
(
unittest
.
TestCase
):
...
...
@@ -66,7 +67,10 @@ class DircacheTests(unittest.TestCase):
def
test_main
():
run_unittest
(
DircacheTests
)
try
:
run_unittest
(
DircacheTests
)
finally
:
dircache
.
reset
()
if
__name__
==
"__main__"
:
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
0aa6e1b8
...
...
@@ -129,7 +129,7 @@ class TestStdlibRemovals(unittest.TestCase):
# test.testall not tested as it executes all unit tests as an
# import side-effect.
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
)
'Bastion'
,
'compiler'
,
'dircache'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules
=
(
'bsddb185'
,
'Canvas'
)
...
...
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