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
4902e69e
Kaydet (Commit)
4902e69e
authored
Agu 30, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More raise statement normalization.
üst
6cd2a203
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
toaiff.py
Demo/scripts/toaiff.py
+4
-4
UserString.py
Lib/UserString.py
+2
-2
utf_32.py
Lib/encodings/utf_32.py
+1
-1
asdl.py
Parser/asdl.py
+1
-1
No files found.
Demo/scripts/toaiff.py
Dosyayı görüntüle @
4902e69e
...
...
@@ -80,7 +80,7 @@ def _toaiff(filename, temps):
temps
.
append
(
fname
)
sts
=
uncompress
.
copy
(
filename
,
fname
)
if
sts
:
raise
error
,
filename
+
': uncompress failed'
raise
error
(
filename
+
': uncompress failed'
)
else
:
fname
=
filename
try
:
...
...
@@ -93,15 +93,15 @@ def _toaiff(filename, temps):
msg
=
msg
[
1
]
if
type
(
msg
)
!=
type
(
''
):
msg
=
repr
(
msg
)
raise
error
,
filename
+
': '
+
msg
raise
error
(
filename
+
': '
+
msg
)
if
ftype
==
'aiff'
:
return
fname
if
ftype
is
None
or
not
ftype
in
table
:
raise
error
,
'
%
s: unsupported audio file type
%
r'
%
(
filename
,
ftype
)
raise
error
(
'
%
s: unsupported audio file type
%
r'
%
(
filename
,
ftype
)
)
(
fd
,
temp
)
=
tempfile
.
mkstemp
()
os
.
close
(
fd
)
temps
.
append
(
temp
)
sts
=
table
[
ftype
]
.
copy
(
fname
,
temp
)
if
sts
:
raise
error
,
filename
+
': conversion to aiff failed'
raise
error
(
filename
+
': conversion to aiff failed'
)
return
temp
Lib/UserString.py
Dosyayı görüntüle @
4902e69e
...
...
@@ -197,7 +197,7 @@ class MutableString(UserString):
elif
step
!=
1
:
# XXX(twouters): I guess we should be reimplementing
# the extended slice assignment/deletion algorithm here...
raise
TypeError
,
"invalid step in slicing assignment"
raise
TypeError
(
"invalid step in slicing assignment"
)
start
=
min
(
start
,
stop
)
self
.
data
=
self
.
data
[:
start
]
+
sub
+
self
.
data
[
stop
:]
else
:
...
...
@@ -212,7 +212,7 @@ class MutableString(UserString):
start
,
stop
=
stop
+
1
,
start
+
1
elif
step
!=
1
:
# XXX(twouters): see same block in __setitem__
raise
TypeError
,
"invalid step in slicing deletion"
raise
TypeError
(
"invalid step in slicing deletion"
)
start
=
min
(
start
,
stop
)
self
.
data
=
self
.
data
[:
start
]
+
self
.
data
[
stop
:]
else
:
...
...
Lib/encodings/utf_32.py
Dosyayı görüntüle @
4902e69e
...
...
@@ -127,7 +127,7 @@ class StreamReader(codecs.StreamReader):
elif
byteorder
==
1
:
self
.
decode
=
codecs
.
utf_32_be_decode
elif
consumed
>=
4
:
raise
UnicodeError
,
"UTF-32 stream does not start with BOM"
raise
UnicodeError
(
"UTF-32 stream does not start with BOM"
)
return
(
object
,
consumed
)
### encodings module API
...
...
Parser/asdl.py
Dosyayı görüntüle @
4902e69e
...
...
@@ -103,7 +103,7 @@ class ASDLScanner(spark.GenericScanner, object):
def
t_default
(
self
,
s
):
r" . +"
raise
ValueError
,
"unmatched input:
%
r"
%
s
raise
ValueError
(
"unmatched input:
%
r"
%
s
)
class
ASDLParser
(
spark
.
GenericParser
,
object
):
def
__init__
(
self
):
...
...
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