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
99773359
Kaydet (Commit)
99773359
authored
Eyl 21, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
üst
ccaf380f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
dist.py
Lib/distutils/dist.py
+1
-1
log.py
Lib/distutils/log.py
+3
-0
test_dist.py
Lib/distutils/tests/test_dist.py
+7
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/distutils/dist.py
Dosyayı görüntüle @
99773359
...
@@ -359,7 +359,7 @@ Common commands: (see '--help-commands' for more)
...
@@ -359,7 +359,7 @@ Common commands: (see '--help-commands' for more)
parser
=
ConfigParser
()
parser
=
ConfigParser
()
for
filename
in
filenames
:
for
filename
in
filenames
:
if
DEBUG
:
if
DEBUG
:
self
.
announce
(
" reading
"
,
filename
)
self
.
announce
(
" reading
%
s"
%
filename
)
parser
.
read
(
filename
)
parser
.
read
(
filename
)
for
section
in
parser
.
sections
():
for
section
in
parser
.
sections
():
options
=
parser
.
options
(
section
)
options
=
parser
.
options
(
section
)
...
...
Lib/distutils/log.py
Dosyayı görüntüle @
99773359
...
@@ -17,6 +17,9 @@ class Log:
...
@@ -17,6 +17,9 @@ class Log:
self
.
threshold
=
threshold
self
.
threshold
=
threshold
def
_log
(
self
,
level
,
msg
,
args
):
def
_log
(
self
,
level
,
msg
,
args
):
if
level
not
in
(
DEBUG
,
INFO
,
WARN
,
ERROR
,
FATAL
):
raise
ValueError
(
'
%
s wrong log level'
%
str
(
level
))
if
level
>=
self
.
threshold
:
if
level
>=
self
.
threshold
:
if
args
:
if
args
:
msg
=
msg
%
args
msg
=
msg
%
args
...
...
Lib/distutils/tests/test_dist.py
Dosyayı görüntüle @
99773359
...
@@ -200,6 +200,13 @@ class DistributionTestCase(support.TempdirManager,
...
@@ -200,6 +200,13 @@ class DistributionTestCase(support.TempdirManager,
self
.
assertEquals
(
cmds
,
[
'distutils.command'
,
'one'
,
'two'
])
self
.
assertEquals
(
cmds
,
[
'distutils.command'
,
'one'
,
'two'
])
def
test_announce
(
self
):
# make sure the level is known
dist
=
Distribution
()
args
=
(
'ok'
,)
kwargs
=
{
'level'
:
'ok2'
}
self
.
assertRaises
(
ValueError
,
dist
.
announce
,
args
,
kwargs
)
class
MetadataTestCase
(
support
.
TempdirManager
,
support
.
EnvironGuard
,
class
MetadataTestCase
(
support
.
TempdirManager
,
support
.
EnvironGuard
,
unittest
.
TestCase
):
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
99773359
...
@@ -379,6 +379,8 @@ Core and Builtins
...
@@ -379,6 +379,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
- Issue #6851: Fix urllib.urlopen crash on secondairy threads on OSX 10.6
- Issue #6851: Fix urllib.urlopen crash on secondairy threads on OSX 10.6
- Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)
- Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)
...
...
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