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
2224817c
Kaydet (Commit)
2224817c
authored
May 16, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0.
üst
7b5151c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
3 deletions
+15
-3
SUNAUDIODEV.py
Lib/plat-sunos5/SUNAUDIODEV.py
+3
-0
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+3
-1
test_sunaudiodev.py
Lib/test/test_sunaudiodev.py
+2
-2
NEWS
Misc/NEWS
+3
-0
sunaudiodev.c
Modules/sunaudiodev.c
+4
-0
No files found.
Lib/plat-sunos5/SUNAUDIODEV.py
Dosyayı görüntüle @
2224817c
# Symbolic constants for use with sunaudiodev module
# The names are the same as in audioio.h with the leading AUDIO_
# removed.
from
warnings
import
warnpy3k
warnpy3k
(
"the SUNAUDIODEV module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
# Not all values are supported on all releases of SunOS.
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
2224817c
...
...
@@ -151,7 +151,9 @@ class TestStdlibRemovals(unittest.TestCase):
'Explorer'
,
'Finder'
,
'Netscape'
,
'StdSuites'
,
'SystemEvents'
,
'Terminal'
,
'cfmfile'
,
'bundlebuilder'
,
'buildtools'
,
'ColorPicker'
)}
'ColorPicker'
),
'sunos5'
:
(
'sunaudiodev'
,
'SUNAUDIODEV'
),
}
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
,
'linuxaudiodev'
,
'imageop'
,
'sv'
)
...
...
Lib/test/test_sunaudiodev.py
Dosyayı görüntüle @
2224817c
from
test.test_support
import
findfile
,
TestFailed
,
TestSkipped
import
sunaudiodev
from
test.test_support
import
findfile
,
TestFailed
,
TestSkipped
,
import_module
sunaudiodev
=
import_module
(
'sunaudiodev'
,
deprecated
=
True
)
import
os
try
:
...
...
Misc/NEWS
Dosyayı görüntüle @
2224817c
...
...
@@ -37,6 +37,9 @@ Extension Modules
Library
-------
- The sunaudiodev and SUNAUDIODEV modules have been deprecated for removal in
Python 3.0.
- The WAIT module from IRIX has been deprecated for removal in Python 3.0.
- The torgb module from IRIX has been deprecated for removal in Python 3.0.
...
...
Modules/sunaudiodev.c
Dosyayı görüntüle @
2224817c
...
...
@@ -452,6 +452,10 @@ void
initsunaudiodev
(
void
)
{
PyObject
*
m
,
*
d
;
if
(
PyErr_WarnPy3k
(
"the sunaudiodev module has been removed in "
"Python 3.0"
,
2
)
<
0
)
return
;
m
=
Py_InitModule
(
"sunaudiodev"
,
sunaudiodev_methods
);
if
(
m
==
NULL
)
...
...
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