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
04f39aa8
Kaydet (Commit)
04f39aa8
authored
Tem 07, 2000
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix inconsistent use of tabs and spaces
üst
65d6edb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
rfc822-n.py
Lib/dos-8x3/rfc822-n.py
+10
-10
_exceptions.py
Lib/xml/sax/_exceptions.py
+10
-10
No files found.
Lib/dos-8x3/rfc822-n.py
Dosyayı görüntüle @
04f39aa8
...
@@ -327,11 +327,11 @@ class Message:
...
@@ -327,11 +327,11 @@ class Message:
"""
"""
raw
=
[]
raw
=
[]
for
h
in
self
.
getallmatchingheaders
(
name
):
for
h
in
self
.
getallmatchingheaders
(
name
):
if
h
[
0
]
in
'
\t
'
:
if
h
[
0
]
in
'
\t
'
:
raw
.
append
(
h
)
raw
.
append
(
h
)
else
:
else
:
if
raw
:
if
raw
:
raw
.
append
(
', '
)
raw
.
append
(
', '
)
i
=
string
.
find
(
h
,
':'
)
i
=
string
.
find
(
h
,
':'
)
if
i
>
0
:
if
i
>
0
:
addr
=
h
[
i
+
1
:]
addr
=
h
[
i
+
1
:]
...
@@ -832,16 +832,16 @@ def parsedate_tz(data):
...
@@ -832,16 +832,16 @@ def parsedate_tz(data):
mm
=
_monthnames
.
index
(
mm
)
+
1
mm
=
_monthnames
.
index
(
mm
)
+
1
if
mm
>
12
:
mm
=
mm
-
12
if
mm
>
12
:
mm
=
mm
-
12
if
dd
[
-
1
]
==
','
:
if
dd
[
-
1
]
==
','
:
dd
=
dd
[:
-
1
]
dd
=
dd
[:
-
1
]
i
=
string
.
find
(
yy
,
':'
)
i
=
string
.
find
(
yy
,
':'
)
if
i
>
0
:
if
i
>
0
:
yy
,
tm
=
tm
,
yy
yy
,
tm
=
tm
,
yy
if
yy
[
-
1
]
==
','
:
if
yy
[
-
1
]
==
','
:
yy
=
yy
[:
-
1
]
yy
=
yy
[:
-
1
]
if
yy
[
0
]
not
in
string
.
digits
:
if
yy
[
0
]
not
in
string
.
digits
:
yy
,
tz
=
tz
,
yy
yy
,
tz
=
tz
,
yy
if
tm
[
-
1
]
==
','
:
if
tm
[
-
1
]
==
','
:
tm
=
tm
[:
-
1
]
tm
=
tm
[:
-
1
]
tm
=
string
.
splitfields
(
tm
,
':'
)
tm
=
string
.
splitfields
(
tm
,
':'
)
if
len
(
tm
)
==
2
:
if
len
(
tm
)
==
2
:
[
thh
,
tmm
]
=
tm
[
thh
,
tmm
]
=
tm
...
...
Lib/xml/sax/_exceptions.py
Dosyayı görüntüle @
04f39aa8
...
@@ -22,8 +22,8 @@ class SAXException(Exception):
...
@@ -22,8 +22,8 @@ class SAXException(Exception):
self
.
_exception
=
exception
self
.
_exception
=
exception
def
getMessage
(
self
):
def
getMessage
(
self
):
"Return a message for this exception."
"Return a message for this exception."
return
self
.
_msg
return
self
.
_msg
def
getException
(
self
):
def
getException
(
self
):
"Return the embedded exception, or None if there was none."
"Return the embedded exception, or None if there was none."
...
@@ -60,21 +60,21 @@ class SAXParseException(SAXException):
...
@@ -60,21 +60,21 @@ class SAXParseException(SAXException):
self
.
_locator
=
locator
self
.
_locator
=
locator
def
getColumnNumber
(
self
):
def
getColumnNumber
(
self
):
"""The column number of the end of the text where the exception
"""The column number of the end of the text where the exception
occurred."""
occurred."""
return
self
.
_locator
.
getColumnNumber
()
return
self
.
_locator
.
getColumnNumber
()
def
getLineNumber
(
self
):
def
getLineNumber
(
self
):
"The line number of the end of the text where the exception occurred."
"The line number of the end of the text where the exception occurred."
return
self
.
_locator
.
getLineNumber
()
return
self
.
_locator
.
getLineNumber
()
def
getPublicId
(
self
):
def
getPublicId
(
self
):
"Get the public identifier of the entity where the exception occurred."
"Get the public identifier of the entity where the exception occurred."
return
self
.
_locator
.
getPublicId
()
return
self
.
_locator
.
getPublicId
()
def
getSystemId
(
self
):
def
getSystemId
(
self
):
"Get the system identifier of the entity where the exception occurred."
"Get the system identifier of the entity where the exception occurred."
return
self
.
_locator
.
getSystemId
()
return
self
.
_locator
.
getSystemId
()
def
__str__
(
self
):
def
__str__
(
self
):
"Create a string representation of the exception."
"Create a string representation of the exception."
...
...
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