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
48fae7ac
Kaydet (Commit)
48fae7ac
authored
Tem 23, 2006
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resync optparse with Optik 1.5.3: minor tweaks for/to tests.
üst
afa358fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
liboptparse.tex
Doc/lib/liboptparse.tex
+1
-1
optparse.py
Lib/optparse.py
+7
-4
test_optparse.py
Lib/test/test_optparse.py
+5
-4
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/liboptparse.tex
Dosyayı görüntüle @
48fae7ac
...
...
@@ -1390,7 +1390,7 @@ parser.add_option("--novice", action="store_const",
\end
{
verbatim
}
\end
{
itemize
}
% $Id: reference.txt 5
05 2005-07-22 01:52:40
Z gward $
% $Id: reference.txt 5
19 2006-06-11 14:39:11
Z gward $
\subsection
{
Option Callbacks
\label
{
optparse
-
option
-
callbacks
}}
...
...
Lib/optparse.py
Dosyayı görüntüle @
48fae7ac
...
...
@@ -16,7 +16,7 @@ For support, use the optik-users@lists.sourceforge.net mailing list
# Python developers: please do not make changes to this file, since
# it is automatically generated from the Optik source code.
__version__
=
"1.5.
1+
"
__version__
=
"1.5.
3
"
__all__
=
[
'Option'
,
'SUPPRESS_HELP'
,
...
...
@@ -75,9 +75,9 @@ def _repr(self):
# This file was generated from:
# Id: option_parser.py 52
2 2006-06-11 16:22:03Z gward
# Id: option_parser.py 52
7 2006-07-23 15:21:30Z greg
# Id: option.py 522 2006-06-11 16:22:03Z gward
# Id: help.py 5
09 2006-04-20 00:58:24Z gward
# Id: help.py 5
27 2006-07-23 15:21:30Z greg
# Id: errors.py 509 2006-04-20 00:58:24Z gward
try
:
...
...
@@ -1631,7 +1631,10 @@ class OptionParser (OptionContainer):
# used by test suite
def
_get_encoding
(
self
,
file
):
return
getattr
(
file
,
"encoding"
,
sys
.
getdefaultencoding
())
encoding
=
getattr
(
file
,
"encoding"
,
None
)
if
not
encoding
:
encoding
=
sys
.
getdefaultencoding
()
return
encoding
def
print_help
(
self
,
file
=
None
):
"""print_help(file : file = stdout)
...
...
Lib/test/test_optparse.py
Dosyayı görüntüle @
48fae7ac
...
...
@@ -1460,10 +1460,11 @@ class TestHelp(BaseTest):
make_option
(
"--foo"
,
action
=
"append"
,
type
=
"string"
,
dest
=
'foo'
,
help
=
"store FOO in the foo list for later fooing"
),
]
# The parser constructor looks at the COLUMNS envar. We need to
# restore the original value after the parser is constructed, else
# that's a permanent change possibly affecting other tests, and
# definitely affecting these tests when they're run multiple times.
# We need to set COLUMNS for the OptionParser constructor, but
# we must restore its original value -- otherwise, this test
# screws things up for other tests when it's part of the Python
# test suite.
orig_columns
=
os
.
environ
.
get
(
'COLUMNS'
)
os
.
environ
[
'COLUMNS'
]
=
str
(
columns
)
try
:
...
...
Misc/NEWS
Dosyayı görüntüle @
48fae7ac
...
...
@@ -34,6 +34,8 @@ Core and builtins
Library
-------
- Resync optparse with Optik 1.5.3: minor tweaks for/to tests.
- Patch #1524429: Use repr() instead of backticks in Tkinter again.
- Bug #1520914: Change time.strftime() to accept a zero for any position in its
...
...
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