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
43e5ef49
Kaydet (Commit)
43e5ef49
authored
May 12, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the multifile module as per PEP 4.
üst
fea23a4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
multifile.py
Lib/multifile.py
+4
-0
test_multifile.py
Lib/test/test_multifile.py
+2
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/multifile.py
Dosyayı görüntüle @
43e5ef49
...
@@ -26,6 +26,10 @@ it normally attempts in order to make seeks relative to the beginning of the
...
@@ -26,6 +26,10 @@ it normally attempts in order to make seeks relative to the beginning of the
current file part. This may be useful when using MultiFile with a non-
current file part. This may be useful when using MultiFile with a non-
seekable stream object.
seekable stream object.
"""
"""
from
warnings
import
warn
warn
(
"the multifile module has been deprecated since Python 2.5"
,
DeprecationWarning
,
stacklevel
=
2
)
del
warn
__all__
=
[
"MultiFile"
,
"Error"
]
__all__
=
[
"MultiFile"
,
"Error"
]
...
...
Lib/test/test_multifile.py
Dosyayı görüntüle @
43e5ef49
from
test
import
test_support
import
mimetools
import
mimetools
import
multifile
multifile
=
test_support
.
import_module
(
'multifile'
,
deprecated
=
True
)
import
cStringIO
import
cStringIO
msg
=
"""Mime-Version: 1.0
msg
=
"""Mime-Version: 1.0
...
...
Misc/NEWS
Dosyayı görüntüle @
43e5ef49
...
@@ -26,6 +26,8 @@ Extension Modules
...
@@ -26,6 +26,8 @@ Extension Modules
Library
Library
-------
-------
- The multifile module has been deprecated as per PEP 4.
- The SocketServer module has been renamed 'socketserver'. The old
- The SocketServer module has been renamed 'socketserver'. The old
name is now deprecated.
name is now deprecated.
...
...
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