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
b8cc6ae5
Kaydet (Commit)
b8cc6ae5
authored
Eki 08, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The usual... Sigh...
üst
6592f88f
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
34 additions
and
14 deletions
+34
-14
formatte.py
Lib/dos-8x3/formatte.py
+4
-1
mimetool.py
Lib/dos-8x3/mimetool.py
+8
-0
para.py
Lib/dos-8x3/para.py
+3
-3
test_str.py
Lib/dos-8x3/test_str.py
+0
-1
tracebac.py
Lib/dos-8x3/tracebac.py
+2
-2
formatte.py
Lib/dos_8x3/formatte.py
+4
-1
mimetool.py
Lib/dos_8x3/mimetool.py
+8
-0
para.py
Lib/dos_8x3/para.py
+3
-3
test_str.py
Lib/dos_8x3/test_str.py
+0
-1
tracebac.py
Lib/dos_8x3/tracebac.py
+2
-2
No files found.
Lib/dos-8x3/formatte.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -10,7 +10,10 @@ AS_IS = None
...
@@ -10,7 +10,10 @@ AS_IS = None
class
NullFormatter
:
class
NullFormatter
:
def
__init__
(
self
,
writer
):
pass
def
__init__
(
self
,
writer
=
None
):
if
not
writer
:
writer
=
NullWriter
()
self
.
writer
=
writer
def
end_paragraph
(
self
,
blankline
):
pass
def
end_paragraph
(
self
,
blankline
):
pass
def
add_line_break
(
self
):
pass
def
add_line_break
(
self
):
pass
def
add_hor_rule
(
self
,
abswidth
=
None
,
percentwidth
=
1.0
,
def
add_hor_rule
(
self
,
abswidth
=
None
,
percentwidth
=
1.0
,
...
...
Lib/dos-8x3/mimetool.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -67,6 +67,14 @@ class Message(rfc822.Message):
...
@@ -67,6 +67,14 @@ class Message(rfc822.Message):
return
rfc822
.
unquote
(
p
[
n
:])
return
rfc822
.
unquote
(
p
[
n
:])
return
None
return
None
def
getparamnames
(
self
):
result
=
[]
for
p
in
self
.
plist
:
i
=
string
.
find
(
p
,
'='
)
if
i
>=
0
:
result
.
append
(
string
.
lower
(
p
[:
i
]))
return
result
def
getencoding
(
self
):
def
getencoding
(
self
):
if
self
.
encodingheader
==
None
:
if
self
.
encodingheader
==
None
:
return
'7bit'
return
'7bit'
...
...
Lib/dos-8x3/para.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -64,11 +64,11 @@ class Para:
...
@@ -64,11 +64,11 @@ class Para:
for
i
in
range
(
len
(
self
.
words
)):
for
i
in
range
(
len
(
self
.
words
)):
word
=
self
.
words
[
i
]
word
=
self
.
words
[
i
]
if
type
(
word
)
==
Int
:
continue
if
type
(
word
)
==
Int
:
continue
fo
,
te
,
wi
,
sp
,
st
,
as
,
de
=
word
(
fo
,
te
,
wi
,
sp
,
st
,
as
,
de
)
=
word
self
.
words
[
i
]
=
fo
,
te
,
wi
,
sp
,
0
,
as
,
de
self
.
words
[
i
]
=
(
fo
,
te
,
wi
,
sp
,
0
,
as
,
de
)
total
=
total
+
wi
+
sp
total
=
total
+
wi
+
sp
if
total
<
tab
:
if
total
<
tab
:
self
.
words
.
append
(
None
,
''
,
0
,
tab
-
total
,
0
,
as
,
de
)
self
.
words
.
append
(
(
None
,
''
,
0
,
tab
-
total
,
0
,
as
,
de
)
)
#
#
# Make a hanging tag: tab to hang, increment indent_left by hang,
# Make a hanging tag: tab to hang, increment indent_left by hang,
# and reset indent_hang to -hang
# and reset indent_hang to -hang
...
...
Lib/dos-8x3/test_str.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -6,7 +6,6 @@ def test(name, input, output):
...
@@ -6,7 +6,6 @@ def test(name, input, output):
value
=
f
(
input
)
value
=
f
(
input
)
except
:
except
:
value
=
sys
.
exc_type
value
=
sys
.
exc_type
print
sys
.
exc_value
if
value
!=
output
:
if
value
!=
output
:
print
f
,
`input`
,
`output`
,
`value`
print
f
,
`input`
,
`output`
,
`value`
...
...
Lib/dos-8x3/tracebac.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -66,7 +66,7 @@ def extract_tb(tb, limit = None):
...
@@ -66,7 +66,7 @@ def extract_tb(tb, limit = None):
line
=
linecache
.
getline
(
filename
,
lineno
)
line
=
linecache
.
getline
(
filename
,
lineno
)
if
line
:
line
=
string
.
strip
(
line
)
if
line
:
line
=
string
.
strip
(
line
)
else
:
line
=
None
else
:
line
=
None
list
.
append
(
filename
,
lineno
,
name
,
line
)
list
.
append
(
(
filename
,
lineno
,
name
,
line
)
)
tb
=
tb
.
tb_next
tb
=
tb
.
tb_next
n
=
n
+
1
n
=
n
+
1
return
list
return
list
...
@@ -176,7 +176,7 @@ def extract_stack(f=None, limit = None):
...
@@ -176,7 +176,7 @@ def extract_stack(f=None, limit = None):
line
=
linecache
.
getline
(
filename
,
lineno
)
line
=
linecache
.
getline
(
filename
,
lineno
)
if
line
:
line
=
string
.
strip
(
line
)
if
line
:
line
=
string
.
strip
(
line
)
else
:
line
=
None
else
:
line
=
None
list
.
append
(
filename
,
lineno
,
name
,
line
)
list
.
append
(
(
filename
,
lineno
,
name
,
line
)
)
f
=
f
.
f_back
f
=
f
.
f_back
n
=
n
+
1
n
=
n
+
1
list
.
reverse
()
list
.
reverse
()
...
...
Lib/dos_8x3/formatte.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -10,7 +10,10 @@ AS_IS = None
...
@@ -10,7 +10,10 @@ AS_IS = None
class
NullFormatter
:
class
NullFormatter
:
def
__init__
(
self
,
writer
):
pass
def
__init__
(
self
,
writer
=
None
):
if
not
writer
:
writer
=
NullWriter
()
self
.
writer
=
writer
def
end_paragraph
(
self
,
blankline
):
pass
def
end_paragraph
(
self
,
blankline
):
pass
def
add_line_break
(
self
):
pass
def
add_line_break
(
self
):
pass
def
add_hor_rule
(
self
,
abswidth
=
None
,
percentwidth
=
1.0
,
def
add_hor_rule
(
self
,
abswidth
=
None
,
percentwidth
=
1.0
,
...
...
Lib/dos_8x3/mimetool.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -67,6 +67,14 @@ class Message(rfc822.Message):
...
@@ -67,6 +67,14 @@ class Message(rfc822.Message):
return
rfc822
.
unquote
(
p
[
n
:])
return
rfc822
.
unquote
(
p
[
n
:])
return
None
return
None
def
getparamnames
(
self
):
result
=
[]
for
p
in
self
.
plist
:
i
=
string
.
find
(
p
,
'='
)
if
i
>=
0
:
result
.
append
(
string
.
lower
(
p
[:
i
]))
return
result
def
getencoding
(
self
):
def
getencoding
(
self
):
if
self
.
encodingheader
==
None
:
if
self
.
encodingheader
==
None
:
return
'7bit'
return
'7bit'
...
...
Lib/dos_8x3/para.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -64,11 +64,11 @@ class Para:
...
@@ -64,11 +64,11 @@ class Para:
for
i
in
range
(
len
(
self
.
words
)):
for
i
in
range
(
len
(
self
.
words
)):
word
=
self
.
words
[
i
]
word
=
self
.
words
[
i
]
if
type
(
word
)
==
Int
:
continue
if
type
(
word
)
==
Int
:
continue
fo
,
te
,
wi
,
sp
,
st
,
as
,
de
=
word
(
fo
,
te
,
wi
,
sp
,
st
,
as
,
de
)
=
word
self
.
words
[
i
]
=
fo
,
te
,
wi
,
sp
,
0
,
as
,
de
self
.
words
[
i
]
=
(
fo
,
te
,
wi
,
sp
,
0
,
as
,
de
)
total
=
total
+
wi
+
sp
total
=
total
+
wi
+
sp
if
total
<
tab
:
if
total
<
tab
:
self
.
words
.
append
(
None
,
''
,
0
,
tab
-
total
,
0
,
as
,
de
)
self
.
words
.
append
(
(
None
,
''
,
0
,
tab
-
total
,
0
,
as
,
de
)
)
#
#
# Make a hanging tag: tab to hang, increment indent_left by hang,
# Make a hanging tag: tab to hang, increment indent_left by hang,
# and reset indent_hang to -hang
# and reset indent_hang to -hang
...
...
Lib/dos_8x3/test_str.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -6,7 +6,6 @@ def test(name, input, output):
...
@@ -6,7 +6,6 @@ def test(name, input, output):
value
=
f
(
input
)
value
=
f
(
input
)
except
:
except
:
value
=
sys
.
exc_type
value
=
sys
.
exc_type
print
sys
.
exc_value
if
value
!=
output
:
if
value
!=
output
:
print
f
,
`input`
,
`output`
,
`value`
print
f
,
`input`
,
`output`
,
`value`
...
...
Lib/dos_8x3/tracebac.py
Dosyayı görüntüle @
b8cc6ae5
...
@@ -66,7 +66,7 @@ def extract_tb(tb, limit = None):
...
@@ -66,7 +66,7 @@ def extract_tb(tb, limit = None):
line
=
linecache
.
getline
(
filename
,
lineno
)
line
=
linecache
.
getline
(
filename
,
lineno
)
if
line
:
line
=
string
.
strip
(
line
)
if
line
:
line
=
string
.
strip
(
line
)
else
:
line
=
None
else
:
line
=
None
list
.
append
(
filename
,
lineno
,
name
,
line
)
list
.
append
(
(
filename
,
lineno
,
name
,
line
)
)
tb
=
tb
.
tb_next
tb
=
tb
.
tb_next
n
=
n
+
1
n
=
n
+
1
return
list
return
list
...
@@ -176,7 +176,7 @@ def extract_stack(f=None, limit = None):
...
@@ -176,7 +176,7 @@ def extract_stack(f=None, limit = None):
line
=
linecache
.
getline
(
filename
,
lineno
)
line
=
linecache
.
getline
(
filename
,
lineno
)
if
line
:
line
=
string
.
strip
(
line
)
if
line
:
line
=
string
.
strip
(
line
)
else
:
line
=
None
else
:
line
=
None
list
.
append
(
filename
,
lineno
,
name
,
line
)
list
.
append
(
(
filename
,
lineno
,
name
,
line
)
)
f
=
f
.
f_back
f
=
f
.
f_back
n
=
n
+
1
n
=
n
+
1
list
.
reverse
()
list
.
reverse
()
...
...
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