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
0e67fd47
Kaydet (Commit)
0e67fd47
authored
Agu 01, 2004
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix SF #1001053, wave.open() with unicode filename fails
Backport candidate.
üst
4ecd8cd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
wave.py
Lib/wave.py
+2
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/wave.py
Dosyayı görüntüle @
0e67fd47
...
...
@@ -155,7 +155,7 @@ class Wave_read:
def
__init__
(
self
,
f
):
self
.
_i_opened_the_file
=
None
if
type
(
f
)
==
type
(
''
):
if
isinstance
(
f
,
basestring
):
f
=
__builtin__
.
open
(
f
,
'rb'
)
self
.
_i_opened_the_file
=
f
# else, assume it is an open file object already
...
...
@@ -294,7 +294,7 @@ class Wave_write:
def
__init__
(
self
,
f
):
self
.
_i_opened_the_file
=
None
if
type
(
f
)
==
type
(
''
):
if
isinstance
(
f
,
basestring
):
f
=
__builtin__
.
open
(
f
,
'wb'
)
self
.
_i_opened_the_file
=
f
self
.
initfp
(
f
)
...
...
Misc/NEWS
Dosyayı görüntüle @
0e67fd47
...
...
@@ -46,6 +46,8 @@ Extension modules
Library
-------
-
Bug
#
1001053.
wave
.
open
()
now
accepts
unicode
filenames
.
-
gzip
.
GzipFile
has
a
new
fileno
()
method
,
to
retrieve
the
handle
of
the
underlying
file
object
(
provided
it
has
a
fileno
()
method
).
This
is
needed
if
you
want
to
use
os
.
fsync
()
on
a
GzipFile
.
...
...
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