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
1733c936
Kaydet (Commit)
1733c936
authored
Eki 24, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed warning and error message
üst
468f700a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
build_py.py
Lib/distutils/command/build_py.py
+1
-1
install_lib.py
Lib/distutils/command/install_lib.py
+1
-1
test_build_py.py
Lib/distutils/tests/test_build_py.py
+1
-1
test_install_lib.py
Lib/distutils/tests/test_install_lib.py
+1
-1
util.py
Lib/distutils/util.py
+1
-1
No files found.
Lib/distutils/command/build_py.py
Dosyayı görüntüle @
1733c936
...
@@ -374,7 +374,7 @@ class build_py(Command):
...
@@ -374,7 +374,7 @@ class build_py(Command):
def
byte_compile
(
self
,
files
):
def
byte_compile
(
self
,
files
):
if
sys
.
dont_write_bytecode
:
if
sys
.
dont_write_bytecode
:
self
.
warn
(
'byte-compil
e not supported on this platform
, skipping.'
)
self
.
warn
(
'byte-compil
ing is disabled
, skipping.'
)
return
return
from
distutils.util
import
byte_compile
from
distutils.util
import
byte_compile
...
...
Lib/distutils/command/install_lib.py
Dosyayı görüntüle @
1733c936
...
@@ -121,7 +121,7 @@ class install_lib(Command):
...
@@ -121,7 +121,7 @@ class install_lib(Command):
def
byte_compile
(
self
,
files
):
def
byte_compile
(
self
,
files
):
if
sys
.
dont_write_bytecode
:
if
sys
.
dont_write_bytecode
:
self
.
warn
(
'byte-compil
e not supported on this platform
, skipping.'
)
self
.
warn
(
'byte-compil
ing is disabled
, skipping.'
)
return
return
from
distutils.util
import
byte_compile
from
distutils.util
import
byte_compile
...
...
Lib/distutils/tests/test_build_py.py
Dosyayı görüntüle @
1733c936
...
@@ -103,7 +103,7 @@ class BuildPyTestCase(support.TempdirManager,
...
@@ -103,7 +103,7 @@ class BuildPyTestCase(support.TempdirManager,
finally
:
finally
:
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
self
.
assertTrue
(
'byte-compil
e not supported
'
in
self
.
logs
[
0
][
1
])
self
.
assertTrue
(
'byte-compil
ing is disabled
'
in
self
.
logs
[
0
][
1
])
def
test_suite
():
def
test_suite
():
return
unittest
.
makeSuite
(
BuildPyTestCase
)
return
unittest
.
makeSuite
(
BuildPyTestCase
)
...
...
Lib/distutils/tests/test_install_lib.py
Dosyayı görüntüle @
1733c936
...
@@ -92,7 +92,7 @@ class InstallLibTestCase(support.TempdirManager,
...
@@ -92,7 +92,7 @@ class InstallLibTestCase(support.TempdirManager,
finally
:
finally
:
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
self
.
assertTrue
(
'byte-compil
e not supported
'
in
self
.
logs
[
0
][
1
])
self
.
assertTrue
(
'byte-compil
ing is disabled
'
in
self
.
logs
[
0
][
1
])
def
test_suite
():
def
test_suite
():
return
unittest
.
makeSuite
(
InstallLibTestCase
)
return
unittest
.
makeSuite
(
InstallLibTestCase
)
...
...
Lib/distutils/util.py
Dosyayı görüntüle @
1733c936
...
@@ -448,7 +448,7 @@ def byte_compile(py_files, optimize=0, force=0, prefix=None, base_dir=None,
...
@@ -448,7 +448,7 @@ def byte_compile(py_files, optimize=0, force=0, prefix=None, base_dir=None,
"""
"""
# nothing is done if sys.dont_write_bytecode is True
# nothing is done if sys.dont_write_bytecode is True
if
sys
.
dont_write_bytecode
:
if
sys
.
dont_write_bytecode
:
raise
DistutilsByteCompileError
(
'byte-compiling
not support
ed.'
)
raise
DistutilsByteCompileError
(
'byte-compiling
is disabl
ed.'
)
# First, if the caller didn't force us into direct or indirect mode,
# First, if the caller didn't force us into direct or indirect mode,
# figure out which mode we should be in. We take a conservative
# figure out which mode we should be in. We take a conservative
...
...
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