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
455ab77f
Kaydet (Commit)
455ab77f
authored
Kas 13, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of #! lines, references to usage as __main__, README.txt, and
http://www.red-dove.com/python_logging.html
.
üst
57102f86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
36 deletions
+4
-36
__init__.py
Lib/logging/__init__.py
+4
-20
config.py
Lib/logging/config.py
+0
-8
handlers.py
Lib/logging/handlers.py
+0
-8
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
455ab77f
#! /usr/bin/env python
#
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
#
# Permission to use, copy, modify, and distribute this software and its
# Permission to use, copy, modify, and distribute this software and its
...
@@ -15,12 +13,6 @@
...
@@ -15,12 +13,6 @@
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# For the change history, see README.txt in the distribution.
#
# This file is part of the Python logging distribution. See
# http://www.red-dove.com/python_logging.html
#
"""
"""
Logging package for Python. Based on PEP 282 and comments thereto in
Logging package for Python. Based on PEP 282 and comments thereto in
...
@@ -58,16 +50,11 @@ __date__ = "27 August 2002"
...
@@ -58,16 +50,11 @@ __date__ = "27 August 2002"
#
#
#_srcfile is used when walking the stack to check when we've got the first
#_srcfile is used when walking the stack to check when we've got the first
# caller stack frame.
# caller stack frame.
#If run as a script, __file__ is not bound.
if
string
.
lower
(
__file__
[
-
4
:])
in
[
'.pyc'
,
'.pyo'
]:
#
_srcfile
=
__file__
[:
-
4
]
+
'.py'
if
__name__
==
"__main__"
:
_srcfile
=
None
else
:
else
:
if
string
.
lower
(
__file__
[
-
4
:])
in
[
'.pyc'
,
'.pyo'
]:
_srcfile
=
__file__
_srcfile
=
__file__
[:
-
4
]
+
'.py'
_srcfile
=
os
.
path
.
normcase
(
_srcfile
)
else
:
_srcfile
=
__file__
_srcfile
=
os
.
path
.
normcase
(
_srcfile
)
#
#
#_startTime is used as the base when calculating the relative time of events
#_startTime is used as the base when calculating the relative time of events
...
@@ -1178,6 +1165,3 @@ def shutdown():
...
@@ -1178,6 +1165,3 @@ def shutdown():
for
h
in
_handlers
.
keys
():
for
h
in
_handlers
.
keys
():
h
.
flush
()
h
.
flush
()
h
.
close
()
h
.
close
()
if
__name__
==
"__main__"
:
print
__doc__
Lib/logging/config.py
Dosyayı görüntüle @
455ab77f
#! /usr/bin/env python
#
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
#
# Permission to use, copy, modify, and distribute this software and its
# Permission to use, copy, modify, and distribute this software and its
...
@@ -15,12 +13,6 @@
...
@@ -15,12 +13,6 @@
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# For the change history, see README.txt in the distribution.
#
# This file is part of the Python logging distribution. See
# http://www.red-dove.com/python_logging.html
#
"""
"""
Logging package for Python. Based on PEP 282 and comments thereto in
Logging package for Python. Based on PEP 282 and comments thereto in
...
...
Lib/logging/handlers.py
Dosyayı görüntüle @
455ab77f
#! /usr/bin/env python
#
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
#
# Permission to use, copy, modify, and distribute this software and its
# Permission to use, copy, modify, and distribute this software and its
...
@@ -15,12 +13,6 @@
...
@@ -15,12 +13,6 @@
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# For the change history, see README.txt in the distribution.
#
# This file is part of the Python logging distribution. See
# http://www.red-dove.com/python_logging.html
#
"""
"""
Logging package for Python. Based on PEP 282 and comments thereto in
Logging package for Python. Based on PEP 282 and comments thereto in
...
...
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