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
3a31cca4
Kaydet (Commit)
3a31cca4
authored
Nis 29, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24902: Print server URL on http.server startup
Initial patch by Felix Kaiser.
üst
955bc38b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
server.py
Lib/http/server.py
+2
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/http/server.py
Dosyayı görüntüle @
3a31cca4
...
@@ -1177,7 +1177,8 @@ def test(HandlerClass=BaseHTTPRequestHandler,
...
@@ -1177,7 +1177,8 @@ def test(HandlerClass=BaseHTTPRequestHandler,
HandlerClass
.
protocol_version
=
protocol
HandlerClass
.
protocol_version
=
protocol
with
ServerClass
(
server_address
,
HandlerClass
)
as
httpd
:
with
ServerClass
(
server_address
,
HandlerClass
)
as
httpd
:
sa
=
httpd
.
socket
.
getsockname
()
sa
=
httpd
.
socket
.
getsockname
()
print
(
"Serving HTTP on"
,
sa
[
0
],
"port"
,
sa
[
1
],
"..."
)
serve_message
=
"Serving HTTP on {host} port {port} (http://{host}:{port}/) ..."
print
(
serve_message
.
format
(
host
=
sa
[
0
],
port
=
sa
[
1
]))
try
:
try
:
httpd
.
serve_forever
()
httpd
.
serve_forever
()
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
...
...
Misc/NEWS
Dosyayı görüntüle @
3a31cca4
...
@@ -256,6 +256,9 @@ Core and Builtins
...
@@ -256,6 +256,9 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
24902
:
Print
server
URL
on
http
.
server
startup
.
Initial
patch
by
Felix
Kaiser
.
-
Issue
#
25788
:
fileinput
.
hook_encoded
()
now
supports
an
"errors"
argument
-
Issue
#
25788
:
fileinput
.
hook_encoded
()
now
supports
an
"errors"
argument
for
passing
to
open
.
Original
patch
by
Joseph
Hackman
.
for
passing
to
open
.
Original
patch
by
Joseph
Hackman
.
...
...
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