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
df0a7170
Kaydet (Commit)
df0a7170
authored
May 11, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The linuxaudidev module has been deprecated for removal in Python 3.0.
üst
27508d4e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
2 deletions
+10
-2
undoc.rst
Doc/library/undoc.rst
+2
-0
test_linuxaudiodev.py
Lib/test/test_linuxaudiodev.py
+1
-1
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
NEWS
Misc/NEWS
+2
-0
linuxaudiodev.c
Modules/linuxaudiodev.c
+4
-0
No files found.
Doc/library/undoc.rst
Dosyayı görüntüle @
df0a7170
...
...
@@ -54,6 +54,8 @@ Multimedia
:mod:`linuxaudiodev`
--- Play audio data on the Linux audio device. Replaced in Python 2.3 by the
:mod:`ossaudiodev` module.
.. warning:: The linuxaudiodev module has been removed in Python 3.0.
:mod:`sunaudio`
--- Interpret Sun audio headers (may become obsolete or a tool/demo).
...
...
Lib/test/test_linuxaudiodev.py
Dosyayı görüntüle @
df0a7170
...
...
@@ -4,7 +4,7 @@ test_support.requires('audio')
from
test.test_support
import
findfile
,
TestSkipped
,
run_unittest
import
errno
import
linuxaudiodev
linuxaudiodev
=
test_support
.
import_module
(
'linuxaudiodev'
,
deprecated
=
True
)
import
sys
import
sunaudio
import
audioop
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
df0a7170
...
...
@@ -133,7 +133,7 @@ class TestStdlibRemovals(unittest.TestCase):
'ihooks'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
)
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
,
'linuxaudiodev'
)
def
check_removal
(
self
,
module_name
,
optional
=
False
):
"""Make sure the specified module, when imported, raises a
...
...
Misc/NEWS
Dosyayı görüntüle @
df0a7170
...
...
@@ -23,6 +23,8 @@ Extension Modules
Library
-------
- The linuxaudiodev module has been deprecated for removal in Python 3.0.
- The ihooks module has been deprecated for removal in Python 3.0.
- The fpformat module has been deprecated for removal in Python 3.0.
...
...
Modules/linuxaudiodev.c
Dosyayı görüntüle @
df0a7170
...
...
@@ -469,6 +469,10 @@ void
initlinuxaudiodev
(
void
)
{
PyObject
*
m
;
if
(
PyErr_WarnPy3k
(
"the linuxaudiodev module has been removed in "
"Python 3.0; use the ossaudiodev module instead"
,
2
)
<
0
)
return
;
m
=
Py_InitModule
(
"linuxaudiodev"
,
linuxaudiodev_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