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
4ba3d657
Kaydet (Commit)
4ba3d657
authored
Mar 02, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use != instead of <>. Sorry, Barry.
üst
48a680c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
smtpd.py
Lib/smtpd.py
+3
-3
No files found.
Lib/smtpd.py
Dosyayı görüntüle @
4ba3d657
...
@@ -153,7 +153,7 @@ class SMTPChannel(asynchat.async_chat):
...
@@ -153,7 +153,7 @@ class SMTPChannel(asynchat.async_chat):
method
(
arg
)
method
(
arg
)
return
return
else
:
else
:
if
self
.
__state
<>
self
.
DATA
:
if
self
.
__state
!=
self
.
DATA
:
self
.
push
(
'451 Internal confusion'
)
self
.
push
(
'451 Internal confusion'
)
return
return
# Remove extraneous carriage returns and de-transparency according
# Remove extraneous carriage returns and de-transparency according
...
@@ -206,7 +206,7 @@ class SMTPChannel(asynchat.async_chat):
...
@@ -206,7 +206,7 @@ class SMTPChannel(asynchat.async_chat):
keylen
=
len
(
keyword
)
keylen
=
len
(
keyword
)
if
arg
[:
keylen
]
.
upper
()
==
keyword
:
if
arg
[:
keylen
]
.
upper
()
==
keyword
:
address
=
arg
[
keylen
:]
.
strip
()
address
=
arg
[
keylen
:]
.
strip
()
if
address
[
0
]
==
'<'
and
address
[
-
1
]
==
'>'
and
address
<>
'<>'
:
if
address
[
0
]
==
'<'
and
address
[
-
1
]
==
'>'
and
address
!=
'<>'
:
# Addresses can be in the form <person@dom.com> but watch out
# Addresses can be in the form <person@dom.com> but watch out
# for null address, e.g. <>
# for null address, e.g. <>
address
=
address
[
1
:
-
1
]
address
=
address
[
1
:
-
1
]
...
@@ -518,7 +518,7 @@ if __name__ == '__main__':
...
@@ -518,7 +518,7 @@ if __name__ == '__main__':
try
:
try
:
os
.
setuid
(
nobody
)
os
.
setuid
(
nobody
)
except
OSError
,
e
:
except
OSError
,
e
:
if
e
.
errno
<>
errno
.
EPERM
:
raise
if
e
.
errno
!=
errno
.
EPERM
:
raise
print
>>
sys
.
stderr
,
\
print
>>
sys
.
stderr
,
\
'Cannot setuid "nobody"; try running with -n option.'
'Cannot setuid "nobody"; try running with -n option.'
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
...
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