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
de19e08d
Kaydet (Commit)
de19e08d
authored
Nis 30, 2011
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated usage of boolean values.
üst
312cc0d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
handlers.py
Lib/logging/handlers.py
+7
-7
No files found.
Lib/logging/handlers.py
Dosyayı görüntüle @
de19e08d
...
@@ -388,7 +388,7 @@ class WatchedFileHandler(logging.FileHandler):
...
@@ -388,7 +388,7 @@ class WatchedFileHandler(logging.FileHandler):
"""
"""
if
not
os
.
path
.
exists
(
self
.
baseFilename
):
if
not
os
.
path
.
exists
(
self
.
baseFilename
):
stat
=
None
stat
=
None
changed
=
1
changed
=
True
else
:
else
:
stat
=
os
.
stat
(
self
.
baseFilename
)
stat
=
os
.
stat
(
self
.
baseFilename
)
changed
=
(
stat
[
ST_DEV
]
!=
self
.
dev
)
or
(
stat
[
ST_INO
]
!=
self
.
ino
)
changed
=
(
stat
[
ST_DEV
]
!=
self
.
dev
)
or
(
stat
[
ST_INO
]
!=
self
.
ino
)
...
@@ -418,15 +418,15 @@ class SocketHandler(logging.Handler):
...
@@ -418,15 +418,15 @@ class SocketHandler(logging.Handler):
"""
"""
Initializes the handler with a specific host address and port.
Initializes the handler with a specific host address and port.
The attribute 'closeOnError' is set to 1 - which means that if
When the attribute *closeOnError* is set to True - if a socket error
a socket error occurs, the socket is silently closed and then
occurs, the socket is silently closed and then reopened on the next
reopened on the next
logging call.
logging call.
"""
"""
logging
.
Handler
.
__init__
(
self
)
logging
.
Handler
.
__init__
(
self
)
self
.
host
=
host
self
.
host
=
host
self
.
port
=
port
self
.
port
=
port
self
.
sock
=
None
self
.
sock
=
None
self
.
closeOnError
=
0
self
.
closeOnError
=
False
self
.
retryTime
=
None
self
.
retryTime
=
None
#
#
# Exponential backoff parameters.
# Exponential backoff parameters.
...
@@ -457,7 +457,7 @@ class SocketHandler(logging.Handler):
...
@@ -457,7 +457,7 @@ class SocketHandler(logging.Handler):
# is the first time back after a disconnect, or
# is the first time back after a disconnect, or
# we've waited long enough.
# we've waited long enough.
if
self
.
retryTime
is
None
:
if
self
.
retryTime
is
None
:
attempt
=
1
attempt
=
True
else
:
else
:
attempt
=
(
now
>=
self
.
retryTime
)
attempt
=
(
now
>=
self
.
retryTime
)
if
attempt
:
if
attempt
:
...
@@ -572,7 +572,7 @@ class DatagramHandler(SocketHandler):
...
@@ -572,7 +572,7 @@ class DatagramHandler(SocketHandler):
Initializes the handler with a specific host address and port.
Initializes the handler with a specific host address and port.
"""
"""
SocketHandler
.
__init__
(
self
,
host
,
port
)
SocketHandler
.
__init__
(
self
,
host
,
port
)
self
.
closeOnError
=
0
self
.
closeOnError
=
False
def
makeSocket
(
self
):
def
makeSocket
(
self
):
"""
"""
...
...
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