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
2bb57b81
Kaydet (Commit)
2bb57b81
authored
Şub 14, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed makefile() args from r/w to rb/wb, for non-unix compatability.
üst
0d12ead0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
SocketServer.py
Lib/SocketServer.py
+2
-2
ftplib.py
Lib/ftplib.py
+2
-2
gopherlib.py
Lib/gopherlib.py
+1
-1
httplib.py
Lib/httplib.py
+1
-1
nntplib.py
Lib/nntplib.py
+1
-1
No files found.
Lib/SocketServer.py
Dosyayı görüntüle @
2bb57b81
...
...
@@ -392,8 +392,8 @@ class StreamRequestHandler(BaseRequestHandler):
def
setup
(
self
):
self
.
connection
=
self
.
request
self
.
rfile
=
self
.
connection
.
makefile
(
'r'
)
self
.
wfile
=
self
.
connection
.
makefile
(
'w'
,
0
)
self
.
rfile
=
self
.
connection
.
makefile
(
'r
b
'
)
self
.
wfile
=
self
.
connection
.
makefile
(
'w
b
'
,
0
)
def
finish
(
self
):
self
.
wfile
.
flush
()
...
...
Lib/ftplib.py
Dosyayı görüntüle @
2bb57b81
...
...
@@ -95,7 +95,7 @@ class FTP:
if
port
:
self
.
port
=
port
self
.
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
self
.
sock
.
connect
(
self
.
host
,
self
.
port
)
self
.
file
=
self
.
sock
.
makefile
(
'r'
)
self
.
file
=
self
.
sock
.
makefile
(
'r
b
'
)
self
.
welcome
=
self
.
getresp
()
# Get the welcome message from the server
...
...
@@ -288,7 +288,7 @@ class FTP:
if
not
callback
:
callback
=
print_line
resp
=
self
.
sendcmd
(
'TYPE A'
)
conn
=
self
.
transfercmd
(
cmd
)
fp
=
conn
.
makefile
(
'r'
)
fp
=
conn
.
makefile
(
'r
b
'
)
while
1
:
line
=
fp
.
readline
()
if
self
.
debugging
>
2
:
print
'*retr*'
,
`line`
...
...
Lib/gopherlib.py
Dosyayı görüntüle @
2bb57b81
...
...
@@ -69,7 +69,7 @@ def send_selector(selector, host, port = 0):
s
.
connect
(
host
,
port
)
s
.
send
(
selector
+
CRLF
)
s
.
shutdown
(
1
)
return
s
.
makefile
(
'r'
)
return
s
.
makefile
(
'r
b
'
)
# Send a selector and a query string
def
send_query
(
selector
,
query
,
host
,
port
=
0
):
...
...
Lib/httplib.py
Dosyayı görüntüle @
2bb57b81
...
...
@@ -82,7 +82,7 @@ class HTTP:
self
.
send
(
'
\r\n
'
)
def
getreply
(
self
):
self
.
file
=
self
.
sock
.
makefile
(
'r'
)
self
.
file
=
self
.
sock
.
makefile
(
'r
b
'
)
self
.
sock
=
None
line
=
self
.
file
.
readline
()
if
self
.
debuglevel
>
0
:
print
'reply:'
,
`line`
...
...
Lib/nntplib.py
Dosyayı görüntüle @
2bb57b81
...
...
@@ -68,7 +68,7 @@ class NNTP:
self
.
port
=
port
self
.
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
self
.
sock
.
connect
(
self
.
host
,
self
.
port
)
self
.
file
=
self
.
sock
.
makefile
(
'r'
)
self
.
file
=
self
.
sock
.
makefile
(
'r
b
'
)
self
.
debugging
=
0
self
.
welcome
=
self
.
getresp
()
...
...
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