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
89a1c93f
Kaydet (Commit)
89a1c93f
authored
May 15, 2017
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
May 15, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-9850: Deprecate the macpath module (#1540)
Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>.
üst
981096f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
macpath.rst
Doc/library/macpath.rst
+2
-0
3.7.rst
Doc/whatsnew/3.7.rst
+2
-0
macpath.py
Lib/macpath.py
+4
-0
test_macpath.py
Lib/test/test_macpath.py
+7
-1
No files found.
Doc/library/macpath.rst
Dosyayı görüntüle @
89a1c93f
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
**Source code:** :source:`Lib/macpath.py`
**Source code:** :source:`Lib/macpath.py`
.. deprecated-removed:: 3.7 3.8
--------------
--------------
This module is the Mac OS 9 (and earlier) implementation of the :mod:`os.path`
This module is the Mac OS 9 (and earlier) implementation of the :mod:`os.path`
...
...
Doc/whatsnew/3.7.rst
Dosyayı görüntüle @
89a1c93f
...
@@ -265,6 +265,8 @@ Deprecated
...
@@ -265,6 +265,8 @@ Deprecated
now deprecated. It never correctly worked. (Contributed by Serhiy Storchaka
now deprecated. It never correctly worked. (Contributed by Serhiy Storchaka
in :issue:`28692`.)
in :issue:`28692`.)
- The :mod:`macpath` is now deprecated and will be removed in Python 3.8.
Changes in the C API
Changes in the C API
--------------------
--------------------
...
...
Lib/macpath.py
Dosyayı görüntüle @
89a1c93f
...
@@ -4,6 +4,10 @@ import os
...
@@ -4,6 +4,10 @@ import os
from
stat
import
*
from
stat
import
*
import
genericpath
import
genericpath
from
genericpath
import
*
from
genericpath
import
*
import
warnings
warnings
.
warn
(
'the macpath module is deprecated in 3.7 and will be removed '
'in 3.8'
,
DeprecationWarning
,
stacklevel
=
2
)
__all__
=
[
"normcase"
,
"isabs"
,
"join"
,
"splitdrive"
,
"split"
,
"splitext"
,
__all__
=
[
"normcase"
,
"isabs"
,
"join"
,
"splitdrive"
,
"split"
,
"splitext"
,
"basename"
,
"dirname"
,
"commonprefix"
,
"getsize"
,
"getmtime"
,
"basename"
,
"dirname"
,
"commonprefix"
,
"getsize"
,
"getmtime"
,
...
...
Lib/test/test_macpath.py
Dosyayı görüntüle @
89a1c93f
import
macpath
from
test
import
test_genericpath
from
test
import
test_genericpath
import
unittest
import
unittest
import
warnings
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
"ignore"
,
"the macpath module is deprecated"
,
DeprecationWarning
)
import
macpath
class
MacPathTestCase
(
unittest
.
TestCase
):
class
MacPathTestCase
(
unittest
.
TestCase
):
...
...
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