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
ece7079b
Kaydet (Commit)
ece7079b
authored
Eki 09, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Branch merge
üst
31b3763f
1a1a8a0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
gettext.rst
Doc/library/gettext.rst
+3
-3
test_config_cmd.py
Lib/distutils/tests/test_config_cmd.py
+2
-2
test_sysconfig.py
Lib/test/test_sysconfig.py
+8
-5
No files found.
Doc/library/gettext.rst
Dosyayı görüntüle @
ece7079b
...
...
@@ -300,7 +300,7 @@ are the methods of :class:`NullTranslations`:
.. method:: lngettext(singular, plural, n)
If a fallback has been set, forward :meth:`ngettext` to the
If a fallback has been set, forward :meth:`
l
ngettext` to the
fallback. Otherwise, return the translated message. Overridden in derived
classes.
...
...
@@ -756,8 +756,8 @@ implementations, and valuable experience to the creation of this module:
.. [#] See the footnote for :func:`bindtextdomain` above.
.. [#] François Pinard has written a program called :program:`xpot` which does a
similar job. It is available as part of his
:program:`po-utils` package at http
://po-utils.progiciels-bpi.ca/
.
similar job. It is available as part of his
`po-utils package
<http://po-utils.progiciels-bpi.ca/>`_
.
.. [#] :program:`msgfmt.py` is binary compatible with GNU :program:`msgfmt` except that
it provides a simpler, all-Python implementation. With this and
...
...
Lib/distutils/tests/test_config_cmd.py
Dosyayı görüntüle @
ece7079b
...
...
@@ -44,10 +44,10 @@ class ConfigTestCase(support.LoggingSilencer,
cmd
=
config
(
dist
)
# simple pattern searches
match
=
cmd
.
search_cpp
(
pattern
=
'xxx'
,
body
=
'/
/ xxx
'
)
match
=
cmd
.
search_cpp
(
pattern
=
'xxx'
,
body
=
'/
* xxx */
'
)
self
.
assertEqual
(
match
,
0
)
match
=
cmd
.
search_cpp
(
pattern
=
'_configtest'
,
body
=
'/
/ xxx
'
)
match
=
cmd
.
search_cpp
(
pattern
=
'_configtest'
,
body
=
'/
* xxx */
'
)
self
.
assertEqual
(
match
,
1
)
def
test_finalize_options
(
self
):
...
...
Lib/test/test_sysconfig.py
Dosyayı görüntüle @
ece7079b
"""Tests for
'site'.
"""Tests for
sysconfig."""
Tests assume the initial paths in sys.path once the interpreter has begun
executing have not been removed.
"""
import
unittest
import
sys
import
os
...
...
@@ -259,8 +255,15 @@ class TestSysConfig(unittest.TestCase):
# is similar to the global posix_prefix one
base
=
get_config_var
(
'base'
)
user
=
get_config_var
(
'userbase'
)
# the global scheme mirrors the distinction between prefix and
# exec-prefix but not the user scheme, so we have to adapt the paths
# before comparing (issue #9100)
adapt
=
sys
.
prefix
!=
sys
.
exec_prefix
for
name
in
(
'stdlib'
,
'platstdlib'
,
'purelib'
,
'platlib'
):
global_path
=
get_path
(
name
,
'posix_prefix'
)
if
adapt
:
global_path
=
global_path
.
replace
(
sys
.
exec_prefix
,
sys
.
prefix
)
base
=
base
.
replace
(
sys
.
exec_prefix
,
sys
.
prefix
)
user_path
=
get_path
(
name
,
'posix_user'
)
self
.
assertEqual
(
user_path
,
global_path
.
replace
(
base
,
user
,
1
))
...
...
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