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
5a9fb3c4
Kaydet (Commit)
5a9fb3c4
authored
Ock 07, 2005
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
e4f5600e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
47 deletions
+44
-47
bundlebuilder.py
Lib/plat-mac/bundlebuilder.py
+1
-1
pimp.py
Lib/plat-mac/pimp.py
+4
-4
inspect_fodder2.py
Lib/test/inspect_fodder2.py
+8
-8
test_csv.py
Lib/test/test_csv.py
+1
-1
test_inspect.py
Lib/test/test_inspect.py
+21
-22
test_zlib.py
Lib/test/test_zlib.py
+1
-1
fixapplepython23.py
Mac/OSX/fixapplepython23.py
+6
-7
makelocalealias.py
Tools/i18n/makelocalealias.py
+1
-2
msi.py
Tools/msi/msi.py
+1
-1
No files found.
Lib/plat-mac/bundlebuilder.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -110,7 +110,7 @@ class BundleBuilder(Defaults):
...
@@ -110,7 +110,7 @@ class BundleBuilder(Defaults):
# Verbosity level.
# Verbosity level.
verbosity
=
1
verbosity
=
1
# Destination root directory
# Destination root directory
destroot
=
""
destroot
=
""
...
...
Lib/plat-mac/pimp.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -907,10 +907,10 @@ class PimpPackage_installer(PimpPackage):
...
@@ -907,10 +907,10 @@ class PimpPackage_installer(PimpPackage):
def
installPackageOnly
(
self
,
output
=
None
):
def
installPackageOnly
(
self
,
output
=
None
):
"""Install a single source package.
"""Install a single source package.
If output is given it should be a file-like object and it
If output is given it should be a file-like object and it
will receive a log of what happened."""
will receive a log of what happened."""
if
self
.
_dict
.
has_key
(
'Post-install-command'
):
if
self
.
_dict
.
has_key
(
'Post-install-command'
):
return
"
%
s: Installer package cannot have Post-install-command"
%
self
.
fullname
()
return
"
%
s: Installer package cannot have Post-install-command"
%
self
.
fullname
()
...
@@ -918,7 +918,7 @@ class PimpPackage_installer(PimpPackage):
...
@@ -918,7 +918,7 @@ class PimpPackage_installer(PimpPackage):
if
_cmd
(
output
,
'/tmp'
,
self
.
_dict
[
'Pre-install-command'
]):
if
_cmd
(
output
,
'/tmp'
,
self
.
_dict
[
'Pre-install-command'
]):
return
"pre-install
%
s: running
\"
%
s
\"
failed"
%
\
return
"pre-install
%
s: running
\"
%
s
\"
failed"
%
\
(
self
.
fullname
(),
self
.
_dict
[
'Pre-install-command'
])
(
self
.
fullname
(),
self
.
_dict
[
'Pre-install-command'
])
self
.
beforeInstall
()
self
.
beforeInstall
()
installcmd
=
self
.
_dict
.
get
(
'Install-command'
)
installcmd
=
self
.
_dict
.
get
(
'Install-command'
)
...
@@ -926,7 +926,7 @@ class PimpPackage_installer(PimpPackage):
...
@@ -926,7 +926,7 @@ class PimpPackage_installer(PimpPackage):
if
'
%
'
in
installcmd
:
if
'
%
'
in
installcmd
:
installcmd
=
installcmd
%
self
.
archiveFilename
installcmd
=
installcmd
%
self
.
archiveFilename
else
:
else
:
installcmd
=
'open
\"
%
s
\"
'
%
self
.
archiveFilename
installcmd
=
'open
\"
%
s
\"
'
%
self
.
archiveFilename
if
_cmd
(
output
,
"/tmp"
,
installcmd
):
if
_cmd
(
output
,
"/tmp"
,
installcmd
):
return
'
%
s: install command failed (use verbose for details)'
%
self
.
fullname
()
return
'
%
s: install command failed (use verbose for details)'
%
self
.
fullname
()
return
'
%
s: downloaded and opened. Install manually and restart Package Manager'
%
self
.
archiveFilename
return
'
%
s: downloaded and opened. Install manually and restart Package Manager'
%
self
.
archiveFilename
...
...
Lib/test/inspect_fodder2.py
Dosyayı görüntüle @
5a9fb3c4
# line 1
# line 1
def
wrap
(
foo
=
None
):
def
wrap
(
foo
=
None
):
def
wrapper
(
func
):
def
wrapper
(
func
):
return
func
return
func
return
wrapper
return
wrapper
# line 7
# line 7
def
replace
(
func
):
def
replace
(
func
):
def
insteadfunc
():
def
insteadfunc
():
print
'hello'
print
'hello'
return
insteadfunc
return
insteadfunc
# line 13
# line 13
@wrap
()
@wrap
()
@wrap
(
wrap
)
@wrap
(
wrap
)
def
wrapped
():
def
wrapped
():
pass
pass
# line 19
# line 19
@replace
@replace
def
gone
():
def
gone
():
pass
pass
# line 24
# line 24
oll
=
lambda
m
:
m
oll
=
lambda
m
:
m
...
...
Lib/test/test_csv.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -33,7 +33,7 @@ class Test_Csv(unittest.TestCase):
...
@@ -33,7 +33,7 @@ class Test_Csv(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
ctor
,
arg
,
quoting
=
None
)
self
.
assertRaises
(
TypeError
,
ctor
,
arg
,
quoting
=
None
)
# We now allow this, only raising an exception if quoting is needed.
# We now allow this, only raising an exception if quoting is needed.
# self.assertRaises(TypeError, ctor, arg, quotechar=None)
# self.assertRaises(TypeError, ctor, arg, quotechar=None)
# self.assertRaises(TypeError, ctor, arg,
# self.assertRaises(TypeError, ctor, arg,
# quoting=csv.QUOTE_NONE, escapechar=None)
# quoting=csv.QUOTE_NONE, escapechar=None)
# No longer complains about dialects with invalid attributes [AM]
# No longer complains about dialects with invalid attributes [AM]
# class BadDialect:
# class BadDialect:
...
...
Lib/test/test_inspect.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -31,11 +31,11 @@ class IsTestBase(unittest.TestCase):
...
@@ -31,11 +31,11 @@ class IsTestBase(unittest.TestCase):
predicates
=
set
([
inspect
.
isbuiltin
,
inspect
.
isclass
,
inspect
.
iscode
,
predicates
=
set
([
inspect
.
isbuiltin
,
inspect
.
isclass
,
inspect
.
iscode
,
inspect
.
isframe
,
inspect
.
isfunction
,
inspect
.
ismethod
,
inspect
.
isframe
,
inspect
.
isfunction
,
inspect
.
ismethod
,
inspect
.
ismodule
,
inspect
.
istraceback
])
inspect
.
ismodule
,
inspect
.
istraceback
])
def
istest
(
self
,
predicate
,
exp
):
def
istest
(
self
,
predicate
,
exp
):
obj
=
eval
(
exp
)
obj
=
eval
(
exp
)
self
.
failUnless
(
predicate
(
obj
),
'
%
s(
%
s)'
%
(
predicate
.
__name__
,
exp
))
self
.
failUnless
(
predicate
(
obj
),
'
%
s(
%
s)'
%
(
predicate
.
__name__
,
exp
))
for
other
in
self
.
predicates
-
set
([
predicate
]):
for
other
in
self
.
predicates
-
set
([
predicate
]):
self
.
failIf
(
other
(
obj
),
'not
%
s(
%
s)'
%
(
other
.
__name__
,
exp
))
self
.
failIf
(
other
(
obj
),
'not
%
s(
%
s)'
%
(
other
.
__name__
,
exp
))
...
@@ -44,7 +44,7 @@ class TestPredicates(IsTestBase):
...
@@ -44,7 +44,7 @@ class TestPredicates(IsTestBase):
# Doc/lib/libinspect.tex claims there are 11 such functions
# Doc/lib/libinspect.tex claims there are 11 such functions
count
=
len
(
filter
(
lambda
x
:
x
.
startswith
(
'is'
),
dir
(
inspect
)))
count
=
len
(
filter
(
lambda
x
:
x
.
startswith
(
'is'
),
dir
(
inspect
)))
self
.
assertEqual
(
count
,
11
,
"There are
%
d (not 11) is* functions"
%
count
)
self
.
assertEqual
(
count
,
11
,
"There are
%
d (not 11) is* functions"
%
count
)
def
test_excluding_predicates
(
self
):
def
test_excluding_predicates
(
self
):
self
.
istest
(
inspect
.
isbuiltin
,
'sys.exit'
)
self
.
istest
(
inspect
.
isbuiltin
,
'sys.exit'
)
self
.
istest
(
inspect
.
isbuiltin
,
'[].append'
)
self
.
istest
(
inspect
.
isbuiltin
,
'[].append'
)
...
@@ -66,7 +66,7 @@ class TestPredicates(IsTestBase):
...
@@ -66,7 +66,7 @@ class TestPredicates(IsTestBase):
class
TestInterpreterStack
(
IsTestBase
):
class
TestInterpreterStack
(
IsTestBase
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kwargs
)
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kwargs
)
git
.
abuse
(
7
,
8
,
9
)
git
.
abuse
(
7
,
8
,
9
)
def
test_abuse_done
(
self
):
def
test_abuse_done
(
self
):
...
@@ -76,7 +76,7 @@ class TestInterpreterStack(IsTestBase):
...
@@ -76,7 +76,7 @@ class TestInterpreterStack(IsTestBase):
def
test_stack
(
self
):
def
test_stack
(
self
):
self
.
assert_
(
len
(
mod
.
st
)
>=
5
)
self
.
assert_
(
len
(
mod
.
st
)
>=
5
)
self
.
assertEqual
(
mod
.
st
[
0
][
1
:],
self
.
assertEqual
(
mod
.
st
[
0
][
1
:],
(
modfile
,
16
,
'eggs'
,
[
' st = inspect.stack()
\n
'
],
0
))
(
modfile
,
16
,
'eggs'
,
[
' st = inspect.stack()
\n
'
],
0
))
self
.
assertEqual
(
mod
.
st
[
1
][
1
:],
self
.
assertEqual
(
mod
.
st
[
1
][
1
:],
(
modfile
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\n
'
],
0
))
(
modfile
,
9
,
'spam'
,
[
' eggs(b + d, c + f)
\n
'
],
0
))
self
.
assertEqual
(
mod
.
st
[
2
][
1
:],
self
.
assertEqual
(
mod
.
st
[
2
][
1
:],
...
@@ -113,7 +113,7 @@ class TestInterpreterStack(IsTestBase):
...
@@ -113,7 +113,7 @@ class TestInterpreterStack(IsTestBase):
class
GetSourceBase
(
unittest
.
TestCase
):
class
GetSourceBase
(
unittest
.
TestCase
):
# Subclasses must override.
# Subclasses must override.
fodderFile
=
None
fodderFile
=
None
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kwargs
)
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kwargs
)
...
@@ -126,10 +126,10 @@ class GetSourceBase(unittest.TestCase):
...
@@ -126,10 +126,10 @@ class GetSourceBase(unittest.TestCase):
def
assertSourceEqual
(
self
,
obj
,
top
,
bottom
):
def
assertSourceEqual
(
self
,
obj
,
top
,
bottom
):
self
.
assertEqual
(
inspect
.
getsource
(
obj
),
self
.
assertEqual
(
inspect
.
getsource
(
obj
),
self
.
sourcerange
(
top
,
bottom
))
self
.
sourcerange
(
top
,
bottom
))
class
TestRetrievingSourceCode
(
GetSourceBase
):
class
TestRetrievingSourceCode
(
GetSourceBase
):
fodderFile
=
mod
fodderFile
=
mod
def
test_getclasses
(
self
):
def
test_getclasses
(
self
):
classes
=
inspect
.
getmembers
(
mod
,
inspect
.
isclass
)
classes
=
inspect
.
getmembers
(
mod
,
inspect
.
isclass
)
self
.
assertEqual
(
classes
,
self
.
assertEqual
(
classes
,
...
@@ -147,7 +147,7 @@ class TestRetrievingSourceCode(GetSourceBase):
...
@@ -147,7 +147,7 @@ class TestRetrievingSourceCode(GetSourceBase):
]
]
]
]
])
])
def
test_getfunctions
(
self
):
def
test_getfunctions
(
self
):
functions
=
inspect
.
getmembers
(
mod
,
inspect
.
isfunction
)
functions
=
inspect
.
getmembers
(
mod
,
inspect
.
isfunction
)
self
.
assertEqual
(
functions
,
[(
'eggs'
,
mod
.
eggs
),
self
.
assertEqual
(
functions
,
[(
'eggs'
,
mod
.
eggs
),
...
@@ -172,8 +172,8 @@ class TestRetrievingSourceCode(GetSourceBase):
...
@@ -172,8 +172,8 @@ class TestRetrievingSourceCode(GetSourceBase):
self
.
assertSourceEqual
(
mod
.
StupidGit
,
21
,
46
)
self
.
assertSourceEqual
(
mod
.
StupidGit
,
21
,
46
)
def
test_getsourcefile
(
self
):
def
test_getsourcefile
(
self
):
self
.
assertEqual
(
inspect
.
getsourcefile
(
mod
.
spam
),
modfile
)
self
.
assertEqual
(
inspect
.
getsourcefile
(
mod
.
spam
),
modfile
)
self
.
assertEqual
(
inspect
.
getsourcefile
(
git
.
abuse
),
modfile
)
self
.
assertEqual
(
inspect
.
getsourcefile
(
git
.
abuse
),
modfile
)
def
test_getfile
(
self
):
def
test_getfile
(
self
):
self
.
assertEqual
(
inspect
.
getfile
(
mod
.
StupidGit
),
mod
.
__file__
)
self
.
assertEqual
(
inspect
.
getfile
(
mod
.
StupidGit
),
mod
.
__file__
)
...
@@ -192,38 +192,38 @@ class TestOneliners(GetSourceBase):
...
@@ -192,38 +192,38 @@ class TestOneliners(GetSourceBase):
def
test_oneline_lambda
(
self
):
def
test_oneline_lambda
(
self
):
# Test inspect.getsource with a one-line lambda function.
# Test inspect.getsource with a one-line lambda function.
self
.
assertSourceEqual
(
mod2
.
oll
,
25
,
25
)
self
.
assertSourceEqual
(
mod2
.
oll
,
25
,
25
)
def
test_threeline_lambda
(
self
):
def
test_threeline_lambda
(
self
):
# Test inspect.getsource with a three-line lambda function,
# Test inspect.getsource with a three-line lambda function,
# where the second and third lines are _not_ indented.
# where the second and third lines are _not_ indented.
self
.
assertSourceEqual
(
mod2
.
tll
,
28
,
30
)
self
.
assertSourceEqual
(
mod2
.
tll
,
28
,
30
)
def
test_twoline_indented_lambda
(
self
):
def
test_twoline_indented_lambda
(
self
):
# Test inspect.getsource with a two-line lambda function,
# Test inspect.getsource with a two-line lambda function,
# where the second line _is_ indented.
# where the second line _is_ indented.
self
.
assertSourceEqual
(
mod2
.
tlli
,
33
,
34
)
self
.
assertSourceEqual
(
mod2
.
tlli
,
33
,
34
)
def
test_onelinefunc
(
self
):
def
test_onelinefunc
(
self
):
# Test inspect.getsource with a regular one-line function.
# Test inspect.getsource with a regular one-line function.
self
.
assertSourceEqual
(
mod2
.
onelinefunc
,
37
,
37
)
self
.
assertSourceEqual
(
mod2
.
onelinefunc
,
37
,
37
)
def
test_manyargs
(
self
):
def
test_manyargs
(
self
):
# Test inspect.getsource with a regular function where
# Test inspect.getsource with a regular function where
# the arguments are on two lines and _not_ indented and
# the arguments are on two lines and _not_ indented and
# the body on the second line with the last arguments.
# the body on the second line with the last arguments.
self
.
assertSourceEqual
(
mod2
.
manyargs
,
40
,
41
)
self
.
assertSourceEqual
(
mod2
.
manyargs
,
40
,
41
)
def
test_twolinefunc
(
self
):
def
test_twolinefunc
(
self
):
# Test inspect.getsource with a regular function where
# Test inspect.getsource with a regular function where
# the body is on two lines, following the argument list and
# the body is on two lines, following the argument list and
# continued on the next line by a \\.
# continued on the next line by a \\.
self
.
assertSourceEqual
(
mod2
.
twolinefunc
,
44
,
45
)
self
.
assertSourceEqual
(
mod2
.
twolinefunc
,
44
,
45
)
def
test_lambda_in_list
(
self
):
def
test_lambda_in_list
(
self
):
# Test inspect.getsource with a one-line lambda function
# Test inspect.getsource with a one-line lambda function
# defined in a list, indented.
# defined in a list, indented.
self
.
assertSourceEqual
(
mod2
.
a
[
1
],
49
,
49
)
self
.
assertSourceEqual
(
mod2
.
a
[
1
],
49
,
49
)
def
test_anonymous
(
self
):
def
test_anonymous
(
self
):
# Test inspect.getsource with a lambda function defined
# Test inspect.getsource with a lambda function defined
# as argument to another function.
# as argument to another function.
...
@@ -233,7 +233,7 @@ class TestOneliners(GetSourceBase):
...
@@ -233,7 +233,7 @@ class TestOneliners(GetSourceBase):
def
attrs_wo_objs
(
cls
):
def
attrs_wo_objs
(
cls
):
return
[
t
[:
3
]
for
t
in
inspect
.
classify_class_attrs
(
cls
)]
return
[
t
[:
3
]
for
t
in
inspect
.
classify_class_attrs
(
cls
)]
class
TestClassesAndFunctions
(
unittest
.
TestCase
):
class
TestClassesAndFunctions
(
unittest
.
TestCase
):
def
test_classic_mro
(
self
):
def
test_classic_mro
(
self
):
# Test classic-class method resolution order.
# Test classic-class method resolution order.
class
A
:
pass
class
A
:
pass
...
@@ -284,7 +284,7 @@ class TestClassesAndFunctions(unittest.TestCase):
...
@@ -284,7 +284,7 @@ class TestClassesAndFunctions(unittest.TestCase):
def
test_getargspec_sublistofone
(
self
):
def
test_getargspec_sublistofone
(
self
):
def
sublistOfOne
((
foo
)):
return
1
def
sublistOfOne
((
foo
)):
return
1
self
.
assertArgSpecEquals
(
sublistOfOne
,
[[
'foo'
]])
self
.
assertArgSpecEquals
(
sublistOfOne
,
[[
'foo'
]])
def
test_classify_oldstyle
(
self
):
def
test_classify_oldstyle
(
self
):
...
@@ -418,4 +418,3 @@ def test_main():
...
@@ -418,4 +418,3 @@ def test_main():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_main
()
test_main
()
Lib/test/test_zlib.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -299,7 +299,7 @@ class CompressObjectTestCase(unittest.TestCase):
...
@@ -299,7 +299,7 @@ class CompressObjectTestCase(unittest.TestCase):
self
.
failUnless
(
co
.
flush
())
# Returns a zlib header
self
.
failUnless
(
co
.
flush
())
# Returns a zlib header
dco
=
zlib
.
decompressobj
()
dco
=
zlib
.
decompressobj
()
self
.
assertEqual
(
dco
.
flush
(),
""
)
# Returns nothing
self
.
assertEqual
(
dco
.
flush
(),
""
)
# Returns nothing
def
genblock
(
seed
,
length
,
step
=
1024
,
generator
=
random
):
def
genblock
(
seed
,
length
,
step
=
1024
,
generator
=
random
):
"""length-byte stream of random data from a seed (in step-byte blocks)."""
"""length-byte stream of random data from a seed (in step-byte blocks)."""
...
...
Mac/OSX/fixapplepython23.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -43,12 +43,12 @@ def findline(lines, start):
...
@@ -43,12 +43,12 @@ def findline(lines, start):
if
lines
[
i
][:
len
(
start
)]
==
start
:
if
lines
[
i
][:
len
(
start
)]
==
start
:
return
i
return
i
return
-
1
return
-
1
def
fix
(
makefile
,
do_apply
):
def
fix
(
makefile
,
do_apply
):
"""Fix the Makefile, if required."""
"""Fix the Makefile, if required."""
fixed
=
False
fixed
=
False
lines
=
open
(
makefile
)
.
readlines
()
lines
=
open
(
makefile
)
.
readlines
()
for
old
,
new
in
CHANGES
:
for
old
,
new
in
CHANGES
:
i
=
findline
(
lines
,
new
)
i
=
findline
(
lines
,
new
)
if
i
>=
0
:
if
i
>=
0
:
...
@@ -61,7 +61,7 @@ def fix(makefile, do_apply):
...
@@ -61,7 +61,7 @@ def fix(makefile, do_apply):
return
2
return
2
lines
[
i
]
=
new
lines
[
i
]
=
new
fixed
=
True
fixed
=
True
if
fixed
:
if
fixed
:
if
do_apply
:
if
do_apply
:
print
'fixapplepython23: Fix to Apple-installed Python 2.3 applied'
print
'fixapplepython23: Fix to Apple-installed Python 2.3 applied'
...
@@ -74,7 +74,7 @@ def fix(makefile, do_apply):
...
@@ -74,7 +74,7 @@ def fix(makefile, do_apply):
else
:
else
:
print
'fixapplepython23: No fix needed, appears to have been applied before'
print
'fixapplepython23: No fix needed, appears to have been applied before'
return
0
return
0
def
makescript
(
filename
,
compiler
):
def
makescript
(
filename
,
compiler
):
"""Create a wrapper script for a compiler"""
"""Create a wrapper script for a compiler"""
dirname
=
os
.
path
.
split
(
filename
)[
0
]
dirname
=
os
.
path
.
split
(
filename
)[
0
]
...
@@ -85,7 +85,7 @@ def makescript(filename, compiler):
...
@@ -85,7 +85,7 @@ def makescript(filename, compiler):
fp
.
close
()
fp
.
close
()
os
.
chmod
(
filename
,
0755
)
os
.
chmod
(
filename
,
0755
)
print
'fixapplepython23: Created'
,
filename
print
'fixapplepython23: Created'
,
filename
def
main
():
def
main
():
# Check for -n option
# Check for -n option
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'-n'
:
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'-n'
:
...
@@ -113,7 +113,6 @@ def main():
...
@@ -113,7 +113,6 @@ def main():
# Finally fix the makefile
# Finally fix the makefile
rv
=
fix
(
MAKEFILE
,
do_apply
)
rv
=
fix
(
MAKEFILE
,
do_apply
)
sys
.
exit
(
rv
)
sys
.
exit
(
rv
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
Tools/i18n/makelocalealias.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -62,7 +62,7 @@ def print_differences(data, olddata):
...
@@ -62,7 +62,7 @@ def print_differences(data, olddata):
print
'# updated
%
r ->
%
r to
%
r'
%
\
print
'# updated
%
r ->
%
r to
%
r'
%
\
(
k
,
olddata
[
k
],
data
[
k
])
(
k
,
olddata
[
k
],
data
[
k
])
# Additions are not mentioned
# Additions are not mentioned
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
data
=
locale
.
locale_alias
.
copy
()
data
=
locale
.
locale_alias
.
copy
()
data
.
update
(
parse
(
LOCALE_ALIAS
))
data
.
update
(
parse
(
LOCALE_ALIAS
))
...
@@ -71,4 +71,3 @@ if __name__ == '__main__':
...
@@ -71,4 +71,3 @@ if __name__ == '__main__':
print
'locale_alias = {'
print
'locale_alias = {'
pprint
(
data
)
pprint
(
data
)
print
'}'
print
'}'
Tools/msi/msi.py
Dosyayı görüntüle @
5a9fb3c4
...
@@ -977,7 +977,7 @@ def add_files(db):
...
@@ -977,7 +977,7 @@ def add_files(db):
lib
.
add_file
(
'python
%
s
%
s.lib'
%
(
major
,
minor
))
lib
.
add_file
(
'python
%
s
%
s.lib'
%
(
major
,
minor
))
# Add the mingw-format library
# Add the mingw-format library
if
have_mingw
:
if
have_mingw
:
lib
.
add_file
(
'libpython
%
s
%
s.a'
%
(
major
,
minor
))
lib
.
add_file
(
'libpython
%
s
%
s.a'
%
(
major
,
minor
))
if
have_tcl
:
if
have_tcl
:
# Add Tcl/Tk
# Add Tcl/Tk
tcldirs
=
[(
root
,
'../tcltk/lib'
,
'tcl'
)]
tcldirs
=
[(
root
,
'../tcltk/lib'
,
'tcl'
)]
...
...
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