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
00c34832
Kaydet (Commit)
00c34832
authored
Mar 28, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Sigh: didn't catch all lists that needed to be sorted.
üst
9ddac3e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
gensuitemodule.py
Mac/scripts/gensuitemodule.py
+22
-4
No files found.
Mac/scripts/gensuitemodule.py
Dosyayı görüntüle @
00c34832
...
...
@@ -127,6 +127,7 @@ def processfile_fromresource(fullname, output=None, basepkgname=None,
def
processfile
(
fullname
,
output
=
None
,
basepkgname
=
None
,
edit_modnames
=
None
,
creatorsignature
=
None
):
"""Ask an application for its terminology and process that"""
print
"
\n
ASKING FOR aete DICTIONARY IN"
,
`fullname`
try
:
aedescobj
,
launched
=
OSATerminology
.
GetAppTerminology
(
fullname
)
except
MacOS
.
Error
,
arg
:
...
...
@@ -856,8 +857,10 @@ class ObjectCompiler:
self
.
fp
.
write
(
'
\t
"""
%
s -
%
s """
\n
'
%
(
ascii
(
name
),
ascii
(
desc
)))
self
.
fp
.
write
(
'
\t
want =
%
s
\n
'
%
`code`
)
self
.
namemappers
[
0
]
.
addnamecode
(
'class'
,
pname
,
code
)
properties
.
sort
()
for
prop
in
properties
:
self
.
compileproperty
(
prop
)
elements
.
sort
()
for
elem
in
elements
:
self
.
compileelement
(
elem
)
...
...
@@ -925,6 +928,9 @@ class ObjectCompiler:
self
.
fp
.
write
(
"# XXXX
%
s element
%
s not found!!
\n
"
%
(
cname
,
`ecode`
))
else
:
elist
.
append
((
name
,
ename
))
plist
.
sort
()
elist
.
sort
()
if
self
.
fp
:
self
.
fp
.
write
(
"
%
s._privpropdict = {
\n
"
%
cname
)
...
...
@@ -974,20 +980,32 @@ class ObjectCompiler:
if
not
self
.
fp
:
return
self
.
fp
.
write
(
"
\n
#
\n
# Indices of types declared in this module
\n
#
\n
"
)
self
.
fp
.
write
(
"_classdeclarations = {
\n
"
)
for
k
,
v
in
self
.
namemappers
[
0
]
.
getall
(
'class'
):
classlist
=
self
.
namemappers
[
0
]
.
getall
(
'class'
)
classlist
.
sort
()
for
k
,
v
in
classlist
:
self
.
fp
.
write
(
"
\t
%
s :
%
s,
\n
"
%
(
`k`
,
v
))
self
.
fp
.
write
(
"}
\n
"
)
self
.
fp
.
write
(
"
\n
_propdeclarations = {
\n
"
)
for
k
,
v
in
self
.
namemappers
[
0
]
.
getall
(
'property'
):
proplist
=
self
.
namemappers
[
0
]
.
getall
(
'property'
)
proplist
.
sort
()
for
k
,
v
in
proplist
:
self
.
fp
.
write
(
"
\t
%
s :
%
s,
\n
"
%
(
`k`
,
v
))
self
.
fp
.
write
(
"}
\n
"
)
self
.
fp
.
write
(
"
\n
_compdeclarations = {
\n
"
)
for
k
,
v
in
self
.
namemappers
[
0
]
.
getall
(
'comparison'
):
complist
=
self
.
namemappers
[
0
]
.
getall
(
'comparison'
)
complist
.
sort
()
for
k
,
v
in
complist
:
self
.
fp
.
write
(
"
\t
%
s :
%
s,
\n
"
%
(
`k`
,
v
))
self
.
fp
.
write
(
"}
\n
"
)
self
.
fp
.
write
(
"
\n
_enumdeclarations = {
\n
"
)
for
k
,
v
in
self
.
namemappers
[
0
]
.
getall
(
'enum'
):
enumlist
=
self
.
namemappers
[
0
]
.
getall
(
'enum'
)
enumlist
.
sort
()
for
k
,
v
in
enumlist
:
self
.
fp
.
write
(
"
\t
%
s :
%
s,
\n
"
%
(
`k`
,
v
))
self
.
fp
.
write
(
"}
\n
"
)
...
...
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