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
feaa7d29
Kaydet (Commit)
feaa7d29
authored
Ara 16, 1993
tarafından
Sjoerd Mullender
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't close the file.
üst
79c85f17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
aifc.py
Lib/aifc.py
+7
-8
No files found.
Lib/aifc.py
Dosyayı görüntüle @
feaa7d29
...
@@ -153,12 +153,12 @@ _skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \
...
@@ -153,12 +153,12 @@ _skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \
_nchannelslist
=
[(
1
,
AL
.
MONO
),
(
2
,
AL
.
STEREO
)]
_nchannelslist
=
[(
1
,
AL
.
MONO
),
(
2
,
AL
.
STEREO
)]
_sampwidthlist
=
[(
8
,
AL
.
SAMPLE_8
),
(
16
,
AL
.
SAMPLE_16
),
(
24
,
AL
.
SAMPLE_24
)]
_sampwidthlist
=
[(
8
,
AL
.
SAMPLE_8
),
(
16
,
AL
.
SAMPLE_16
),
(
24
,
AL
.
SAMPLE_24
)]
_frameratelist
=
[(
48000
,
AL
.
RATE_48000
),
\
_frameratelist
=
[(
48000
,
AL
.
RATE_48000
),
(
44100
,
AL
.
RATE_44100
),
\
(
44100
,
AL
.
RATE_44100
),
(
32000
,
AL
.
RATE_32000
),
\
(
32000
,
AL
.
RATE_32000
),
(
22050
,
AL
.
RATE_22050
),
\
(
22050
,
AL
.
RATE_22050
),
(
16000
,
AL
.
RATE_16000
),
\
(
16000
,
AL
.
RATE_16000
),
(
11025
,
AL
.
RATE_11025
),
\
(
11025
,
AL
.
RATE_11025
),
(
8000
,
AL
.
RATE_8000
)]
(
8000
,
AL
.
RATE_8000
)]
def
_convert1
(
value
,
list
):
def
_convert1
(
value
,
list
):
...
@@ -456,7 +456,6 @@ class Aifc_read:
...
@@ -456,7 +456,6 @@ class Aifc_read:
if
self
.
_decomp
:
if
self
.
_decomp
:
self
.
_decomp
.
CloseDecompressor
()
self
.
_decomp
.
CloseDecompressor
()
self
.
_decomp
=
None
self
.
_decomp
=
None
self
.
_file
.
close
()
self
.
_file
=
None
self
.
_file
=
None
def
tell
(
self
):
def
tell
(
self
):
...
@@ -816,7 +815,7 @@ class Aifc_write:
...
@@ -816,7 +815,7 @@ class Aifc_write:
if
self
.
_comp
:
if
self
.
_comp
:
self
.
_comp
.
CloseCompressor
()
self
.
_comp
.
CloseCompressor
()
self
.
_comp
=
None
self
.
_comp
=
None
self
.
_file
.
close
()
self
.
_file
.
flush
()
self
.
_file
=
None
self
.
_file
=
None
#
#
...
...
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