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
cf0b2e8e
Kaydet (Commit)
cf0b2e8e
authored
Şub 05, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Getting rid of macfs and FSSpecs.
üst
d66071b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
ic.py
Lib/plat-mac/ic.py
+5
-7
No files found.
Lib/plat-mac/ic.py
Dosyayı görüntüle @
cf0b2e8e
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
import
icglue
import
icglue
import
string
import
string
import
sys
import
sys
import
os
from
Carbon
import
Res
from
Carbon
import
Res
import
Carbon.File
import
macfs
import
macfs
import
macostools
import
macostools
...
@@ -216,13 +218,9 @@ class IC:
...
@@ -216,13 +218,9 @@ class IC:
return
self
.
ic
.
ICMapTypeCreator
(
type
,
creator
,
filename
)
return
self
.
ic
.
ICMapTypeCreator
(
type
,
creator
,
filename
)
def
settypecreator
(
self
,
file
):
def
settypecreator
(
self
,
file
):
if
type
(
file
)
==
type
(
''
):
file
=
Carbon
.
File
.
pathname
(
file
)
fss
=
macfs
.
FSSpec
(
file
)
record
=
self
.
mapfile
(
os
.
path
.
split
(
file
)[
1
])
else
:
MacOS
.
SetCreatorAndType
(
file
,
record
[
2
],
record
[
1
])
fss
=
file
name
=
fss
.
as_tuple
()[
2
]
record
=
self
.
mapfile
(
name
)
fss
.
SetCreatorType
(
record
[
2
],
record
[
1
])
macostools
.
touched
(
fss
)
macostools
.
touched
(
fss
)
# Convenience routines
# Convenience routines
...
...
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