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
3d7d372c
Kaydet (Commit)
3d7d372c
authored
Tem 18, 2004
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization, via reindent.py.
üst
182b5aca
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
49 additions
and
53 deletions
+49
-53
setup.py
Doc/ext/setup.py
+0
-1
test.py
Doc/ext/test.py
+0
-1
caseless.py
Doc/lib/caseless.py
+1
-3
email-dir.py
Doc/lib/email-dir.py
+1
-1
minidom-example.py
Doc/lib/minidom-example.py
+1
-1
required_1.py
Doc/lib/required_1.py
+4
-4
reswords.py
Doc/ref/reswords.py
+8
-8
custlib.py
Doc/tools/custlib.py
+8
-8
keywords.py
Doc/tools/keywords.py
+7
-7
prechm.py
Doc/tools/prechm.py
+2
-2
latex2esis.py
Doc/tools/sgmlconv/latex2esis.py
+1
-1
testpy.py
PC/testpy.py
+15
-15
build_ssl.py
PCbuild/build_ssl.py
+1
-1
No files found.
Doc/ext/setup.py
Dosyayı görüntüle @
3d7d372c
...
@@ -6,4 +6,3 @@ setup(name="noddy", version="1.0",
...
@@ -6,4 +6,3 @@ setup(name="noddy", version="1.0",
Extension
(
"noddy3"
,
[
"noddy3.c"
]),
Extension
(
"noddy3"
,
[
"noddy3.c"
]),
Extension
(
"noddy4"
,
[
"noddy4.c"
]),
Extension
(
"noddy4"
,
[
"noddy4.c"
]),
])
])
Doc/ext/test.py
Dosyayı görüntüle @
3d7d372c
...
@@ -211,4 +211,3 @@ sys.path.append(src)
...
@@ -211,4 +211,3 @@ sys.path.append(src)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
import
doctest
,
__main__
import
doctest
,
__main__
doctest
.
testmod
(
__main__
)
doctest
.
testmod
(
__main__
)
Doc/lib/caseless.py
Dosyayı görüntüle @
3d7d372c
...
@@ -45,7 +45,7 @@ if __name__ == "__main__":
...
@@ -45,7 +45,7 @@ if __name__ == "__main__":
print
"ok: got OptionConflictError for -H"
print
"ok: got OptionConflictError for -H"
else
:
else
:
print
"not ok: no conflict between -h and -H"
print
"not ok: no conflict between -h and -H"
parser
.
add_option
(
"-f"
,
"--file"
,
dest
=
"file"
)
parser
.
add_option
(
"-f"
,
"--file"
,
dest
=
"file"
)
#print repr(parser.get_option("-f"))
#print repr(parser.get_option("-f"))
#print repr(parser.get_option("-F"))
#print repr(parser.get_option("-F"))
...
@@ -58,5 +58,3 @@ if __name__ == "__main__":
...
@@ -58,5 +58,3 @@ if __name__ == "__main__":
(
options
,
args
)
=
parser
.
parse_args
([
"-F"
,
"bar"
])
(
options
,
args
)
=
parser
.
parse_args
([
"-F"
,
"bar"
])
assert
options
.
file
==
"bar"
,
options
.
file
assert
options
.
file
==
"bar"
,
options
.
file
print
"ok: case insensitive short options work"
print
"ok: case insensitive short options work"
Doc/lib/email-dir.py
Dosyayı görüntüle @
3d7d372c
...
@@ -66,7 +66,7 @@ def main():
...
@@ -66,7 +66,7 @@ def main():
sender
=
args
[
0
]
sender
=
args
[
0
]
recips
=
args
[
1
:]
recips
=
args
[
1
:]
# Create the enclosing (outer) message
# Create the enclosing (outer) message
outer
=
MIMEMultipart
()
outer
=
MIMEMultipart
()
outer
[
'Subject'
]
=
'Contents of directory
%
s'
%
os
.
path
.
abspath
(
dir
)
outer
[
'Subject'
]
=
'Contents of directory
%
s'
%
os
.
path
.
abspath
(
dir
)
...
...
Doc/lib/minidom-example.py
Dosyayı görüntüle @
3d7d372c
...
@@ -35,7 +35,7 @@ def handleSlideshow(slideshow):
...
@@ -35,7 +35,7 @@ def handleSlideshow(slideshow):
def
handleSlides
(
slides
):
def
handleSlides
(
slides
):
for
slide
in
slides
:
for
slide
in
slides
:
handleSlide
(
slide
)
handleSlide
(
slide
)
def
handleSlide
(
slide
):
def
handleSlide
(
slide
):
handleSlideTitle
(
slide
.
getElementsByTagName
(
"title"
)[
0
])
handleSlideTitle
(
slide
.
getElementsByTagName
(
"title"
)[
0
])
...
...
Doc/lib/required_1.py
Dosyayı görüntüle @
3d7d372c
...
@@ -3,11 +3,11 @@ import optparse
...
@@ -3,11 +3,11 @@ import optparse
class
OptionParser
(
optparse
.
OptionParser
):
class
OptionParser
(
optparse
.
OptionParser
):
def
check_required
(
self
,
opt
):
def
check_required
(
self
,
opt
):
option
=
self
.
get_option
(
opt
)
option
=
self
.
get_option
(
opt
)
# Assumes the option's 'default' is set to None!
# Assumes the option's 'default' is set to None!
if
getattr
(
self
.
values
,
option
.
dest
)
is
None
:
if
getattr
(
self
.
values
,
option
.
dest
)
is
None
:
self
.
error
(
"
%
s option not supplied"
%
option
)
self
.
error
(
"
%
s option not supplied"
%
option
)
parser
=
OptionParser
()
parser
=
OptionParser
()
...
...
Doc/ref/reswords.py
Dosyayı görüntüle @
3d7d372c
...
@@ -11,13 +11,13 @@ def main():
...
@@ -11,13 +11,13 @@ def main():
nwords
=
len
(
words
)
nwords
=
len
(
words
)
nrows
=
(
nwords
+
ncols
-
1
)
/
ncols
nrows
=
(
nwords
+
ncols
-
1
)
/
ncols
for
irow
in
range
(
nrows
):
for
irow
in
range
(
nrows
):
for
icol
in
range
(
ncols
):
for
icol
in
range
(
ncols
):
i
=
irow
+
icol
*
nrows
i
=
irow
+
icol
*
nrows
if
0
<=
i
<
nwords
:
if
0
<=
i
<
nwords
:
word
=
words
[
i
]
word
=
words
[
i
]
else
:
else
:
word
=
""
word
=
""
print
"
%-*
s"
%
(
colwidth
,
word
),
print
"
%-*
s"
%
(
colwidth
,
word
),
print
print
main
()
main
()
Doc/tools/custlib.py
Dosyayı görüntüle @
3d7d372c
...
@@ -10,20 +10,20 @@ modules = {}
...
@@ -10,20 +10,20 @@ modules = {}
for
modname
in
sys
.
builtin_module_names
:
for
modname
in
sys
.
builtin_module_names
:
modules
[
modname
]
=
modname
modules
[
modname
]
=
modname
for
dir
in
sys
.
path
:
for
dir
in
sys
.
path
:
# Look for *.py files
# Look for *.py files
filelist
=
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.py'
))
filelist
=
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.py'
))
for
file
in
filelist
:
for
file
in
filelist
:
path
,
file
=
os
.
path
.
split
(
file
)
path
,
file
=
os
.
path
.
split
(
file
)
base
,
ext
=
os
.
path
.
splitext
(
file
)
base
,
ext
=
os
.
path
.
splitext
(
file
)
modules
[
base
.
lower
()]
=
base
modules
[
base
.
lower
()]
=
base
# Look for shared library files
# Look for shared library files
filelist
=
(
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.so'
))
+
filelist
=
(
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.so'
))
+
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.sl'
))
+
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.sl'
))
+
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.o'
))
)
glob
.
glob
(
os
.
path
.
join
(
dir
,
'*.o'
))
)
for
file
in
filelist
:
for
file
in
filelist
:
path
,
file
=
os
.
path
.
split
(
file
)
path
,
file
=
os
.
path
.
split
(
file
)
base
,
ext
=
os
.
path
.
splitext
(
file
)
base
,
ext
=
os
.
path
.
splitext
(
file
)
if
base
[
-
6
:]
==
'module'
:
if
base
[
-
6
:]
==
'module'
:
...
@@ -54,7 +54,7 @@ modules = mlist
...
@@ -54,7 +54,7 @@ modules = mlist
# Phase III: write custlib.tex
# Phase III: write custlib.tex
# Write the boilerplate
# Write the boilerplate
# XXX should be fancied up.
# XXX should be fancied up.
print
"""
\
documentstyle[twoside,11pt,myformat]{report}
print
"""
\
documentstyle[twoside,11pt,myformat]{report}
\\
title{Python Library Reference}
\\
title{Python Library Reference}
\\
input{boilerplate}
\\
input{boilerplate}
...
@@ -69,10 +69,10 @@ print """\documentstyle[twoside,11pt,myformat]{report}
...
@@ -69,10 +69,10 @@ print """\documentstyle[twoside,11pt,myformat]{report}
\\
pagebreak
\\
pagebreak
{
\\
parskip = 0mm
\\
tableofcontents}
{
\\
parskip = 0mm
\\
tableofcontents}
\\
pagebreak
\\
pagenumbering{arabic}"""
\\
pagebreak
\\
pagenumbering{arabic}"""
for
modname
in
mlist
:
for
modname
in
mlist
:
print
"
\\
input{lib
%
s}"
%
(
modname
,)
print
"
\\
input{lib
%
s}"
%
(
modname
,)
# Write the end
# Write the end
print
"""
\\
input{custlib.ind}
%
Index
print
"""
\\
input{custlib.ind}
%
Index
\\
end{document}"""
\\
end{document}"""
Doc/tools/keywords.py
Dosyayı görüntüle @
3d7d372c
...
@@ -4,16 +4,16 @@
...
@@ -4,16 +4,16 @@
l
=
[]
l
=
[]
try
:
try
:
while
1
:
while
1
:
l
=
l
+
raw_input
()
.
split
()
l
=
l
+
raw_input
()
.
split
()
except
EOFError
:
except
EOFError
:
pass
pass
l
.
sort
()
l
.
sort
()
for
x
in
l
[:]:
for
x
in
l
[:]:
while
l
.
count
(
x
)
>
1
:
l
.
remove
(
x
)
while
l
.
count
(
x
)
>
1
:
l
.
remove
(
x
)
ncols
=
5
ncols
=
5
nrows
=
(
len
(
l
)
+
ncols
-
1
)
/
ncols
nrows
=
(
len
(
l
)
+
ncols
-
1
)
/
ncols
for
i
in
range
(
nrows
):
for
i
in
range
(
nrows
):
for
j
in
range
(
i
,
len
(
l
),
nrows
):
for
j
in
range
(
i
,
len
(
l
),
nrows
):
print
l
[
j
]
.
ljust
(
10
),
print
l
[
j
]
.
ljust
(
10
),
print
print
Doc/tools/prechm.py
Dosyayı görüntüle @
3d7d372c
...
@@ -438,8 +438,8 @@ def openfile(file):
...
@@ -438,8 +438,8 @@ def openfile(file):
return
p
return
p
def
usage
():
def
usage
():
print
usage_mode
print
usage_mode
sys
.
exit
(
0
)
sys
.
exit
(
0
)
def
do_it
(
args
=
None
):
def
do_it
(
args
=
None
):
if
not
args
:
if
not
args
:
...
...
Doc/tools/sgmlconv/latex2esis.py
Dosyayı görüntüle @
3d7d372c
...
@@ -11,7 +11,7 @@ passed to the convert() function; changing this table can allow this
...
@@ -11,7 +11,7 @@ passed to the convert() function; changing this table can allow this
tool to support additional LaTeX markups.
tool to support additional LaTeX markups.
The format of the table is largely undocumented; see the commented
The format of the table is largely undocumented; see the commented
headers where the table is specified in main(). There is no provision
headers where the table is specified in main(). There is no provision
to load an alternate table from an external file.
to load an alternate table from an external file.
"""
"""
...
...
PC/testpy.py
Dosyayı görüntüle @
3d7d372c
...
@@ -5,28 +5,28 @@ import sys
...
@@ -5,28 +5,28 @@ import sys
# change this module too.
# change this module too.
try
:
try
:
import
string
import
string
except
:
except
:
print
"""Could not import the standard "string" module.
print
"""Could not import the standard "string" module.
Please check your PYTHONPATH environment variable."""
Please check your PYTHONPATH environment variable."""
sys
.
exit
(
1
)
sys
.
exit
(
1
)
try
:
try
:
import
regex_syntax
import
regex_syntax
except
:
except
:
print
"""Could not import the standard "regex_syntax" module. If this is
print
"""Could not import the standard "regex_syntax" module. If this is
a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
sys
.
exit
(
1
)
sys
.
exit
(
1
)
import
os
import
os
for
dir
in
sys
.
path
:
for
dir
in
sys
.
path
:
file
=
os
.
path
.
join
(
dir
,
"string.py"
)
file
=
os
.
path
.
join
(
dir
,
"string.py"
)
if
os
.
path
.
isfile
(
file
):
if
os
.
path
.
isfile
(
file
):
test
=
os
.
path
.
join
(
dir
,
"test"
)
test
=
os
.
path
.
join
(
dir
,
"test"
)
if
os
.
path
.
isdir
(
test
):
if
os
.
path
.
isdir
(
test
):
# Add the "test" directory to PYTHONPATH.
# Add the "test" directory to PYTHONPATH.
sys
.
path
=
sys
.
path
+
[
test
]
sys
.
path
=
sys
.
path
+
[
test
]
import
regrtest
# Standard Python tester.
import
regrtest
# Standard Python tester.
regrtest
.
main
()
regrtest
.
main
()
PCbuild/build_ssl.py
Dosyayı görüntüle @
3d7d372c
...
@@ -118,7 +118,7 @@ def main():
...
@@ -118,7 +118,7 @@ def main():
# all outputs (debug/nondebug/dll/lib). So we filter the file
# all outputs (debug/nondebug/dll/lib). So we filter the file
# to exclude any "nmake" commands and then execute.
# to exclude any "nmake" commands and then execute.
tempname
=
"ms
\\
32all_py.bat"
tempname
=
"ms
\\
32all_py.bat"
in_bat
=
open
(
"ms
\\
32all.bat"
)
in_bat
=
open
(
"ms
\\
32all.bat"
)
temp_bat
=
open
(
tempname
,
"w"
)
temp_bat
=
open
(
tempname
,
"w"
)
while
1
:
while
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