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
086ac007
Kaydet (Commit)
086ac007
authored
Şub 11, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF #515004 cleanup
- remove unnecessary imports - rename dum -> dummy
üst
9fb289d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
aifc.py
Lib/aifc.py
+2
-4
No files found.
Lib/aifc.py
Dosyayı görüntüle @
086ac007
...
@@ -178,7 +178,6 @@ def _read_string(file):
...
@@ -178,7 +178,6 @@ def _read_string(file):
_HUGE_VAL
=
1.79769313486231e+308
# See <limits.h>
_HUGE_VAL
=
1.79769313486231e+308
# See <limits.h>
def
_read_float
(
f
):
# 10 bytes
def
_read_float
(
f
):
# 10 bytes
import
math
expon
=
_read_short
(
f
)
# 2 bytes
expon
=
_read_short
(
f
)
# 2 bytes
sign
=
1
sign
=
1
if
expon
<
0
:
if
expon
<
0
:
...
@@ -746,8 +745,8 @@ class Aifc_write:
...
@@ -746,8 +745,8 @@ class Aifc_write:
def
_comp_data
(
self
,
data
):
def
_comp_data
(
self
,
data
):
import
cl
import
cl
dum
=
self
.
_comp
.
SetParam
(
cl
.
FRAME_BUFFER_SIZE
,
len
(
data
))
dum
my
=
self
.
_comp
.
SetParam
(
cl
.
FRAME_BUFFER_SIZE
,
len
(
data
))
dum
=
self
.
_comp
.
SetParam
(
cl
.
COMPRESSED_BUFFER_SIZE
,
len
(
data
))
dum
my
=
self
.
_comp
.
SetParam
(
cl
.
COMPRESSED_BUFFER_SIZE
,
len
(
data
))
return
self
.
_comp
.
Compress
(
self
.
_nframes
,
data
)
return
self
.
_comp
.
Compress
(
self
.
_nframes
,
data
)
def
_lin2ulaw
(
self
,
data
):
def
_lin2ulaw
(
self
,
data
):
...
@@ -784,7 +783,6 @@ class Aifc_write:
...
@@ -784,7 +783,6 @@ class Aifc_write:
def
_init_compression
(
self
):
def
_init_compression
(
self
):
if
self
.
_comptype
==
'G722'
:
if
self
.
_comptype
==
'G722'
:
import
audioop
self
.
_convert
=
self
.
_lin2adpcm
self
.
_convert
=
self
.
_lin2adpcm
return
return
try
:
try
:
...
...
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