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
98fc6837
Kaydet (Commit)
98fc6837
authored
Şub 27, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Getting rid of macfs.
üst
abeb7d5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
macpath.py
Lib/macpath.py
+4
-4
py_compile.py
Lib/py_compile.py
+2
-2
test_macostools.py
Lib/test/test_macostools.py
+3
-3
No files found.
Lib/macpath.py
Dosyayı görüntüle @
98fc6837
...
...
@@ -129,8 +129,8 @@ def islink(s):
"""Return true if the pathname refers to a symbolic link."""
try
:
import
macfs
return
macfs
.
ResolveAliasFile
(
s
)[
2
]
import
Carbon.File
return
Carbon
.
File
.
ResolveAliasFile
(
s
,
0
)[
2
]
except
:
return
False
...
...
@@ -247,7 +247,7 @@ def abspath(path):
def
realpath
(
path
):
path
=
abspath
(
path
)
try
:
import
macfs
import
Carbon.File
except
ImportError
:
return
path
if
not
path
:
...
...
@@ -256,7 +256,7 @@ def realpath(path):
path
=
components
[
0
]
+
':'
for
c
in
components
[
1
:]:
path
=
join
(
path
,
c
)
path
=
macfs
.
ResolveAliasFile
(
path
)[
0
]
.
as_pathname
()
path
=
Carbon
.
File
.
FSResolveAliasFile
(
path
,
1
)[
0
]
.
as_pathname
()
return
path
supports_unicode_filenames
=
False
Lib/py_compile.py
Dosyayı görüntüle @
98fc6837
...
...
@@ -63,9 +63,9 @@ class PyCompileError(Exception):
# Define an internal helper according to the platform
if
os
.
name
==
"mac"
:
import
macfs
import
MacOS
def
set_creator_type
(
file
):
macfs
.
FSSpec
(
file
)
.
SetCreatorType
(
'Pyth'
,
'PYC '
)
MacOS
.
SetCreatorAndType
(
file
,
'Pyth'
,
'PYC '
)
else
:
def
set_creator_type
(
file
):
pass
...
...
Lib/test/test_macostools.py
Dosyayı görüntüle @
98fc6837
...
...
@@ -2,7 +2,7 @@
import
unittest
import
macostools
import
macfs
import
Carbon.File
import
MacOS
import
os
import
sys
...
...
@@ -67,7 +67,7 @@ class TestMacostools(unittest.TestCase):
except
:
pass
macostools
.
mkalias
(
test_support
.
TESTFN
,
TESTFN2
)
fss
,
_
,
_
=
macfs
.
ResolveAliasFile
(
TESTFN2
)
fss
,
_
,
_
=
Carbon
.
File
.
ResolveAliasFile
(
TESTFN2
,
0
)
self
.
assertEqual
(
fss
.
as_pathname
(),
os
.
path
.
realpath
(
test_support
.
TESTFN
))
def
test_mkalias_relative
(
self
):
...
...
@@ -76,7 +76,7 @@ class TestMacostools(unittest.TestCase):
except
:
pass
macostools
.
mkalias
(
test_support
.
TESTFN
,
TESTFN2
,
sys
.
prefix
)
fss
,
_
,
_
=
macfs
.
ResolveAliasFile
(
TESTFN2
)
fss
,
_
,
_
=
Carbon
.
File
.
ResolveAliasFile
(
TESTFN2
,
0
)
self
.
assertEqual
(
fss
.
as_pathname
(),
os
.
path
.
realpath
(
test_support
.
TESTFN
))
...
...
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