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
c0d91aff
Kaydet (Commit)
c0d91aff
authored
Eki 16, 2015
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Upgrade the imp module's deprecation to DeprecationWarning.
üst
aa15ea4b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
3.6.rst
Doc/whatsnew/3.6.rst
+3
-0
imp.py
Lib/imp.py
+1
-1
pkgutil.py
Lib/pkgutil.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/whatsnew/3.6.rst
Dosyayı görüntüle @
c0d91aff
...
...
@@ -228,6 +228,9 @@ Changes in the Python API
now raises :exc:`ValueError` for out-of-range values, rather than
returning :const:`None`. See :issue:`20059`.
* The :mod:`imp` module now raises a :exc:`DeprecationWarning` instead of
:exc:`PendingDeprecationWarning`.
Changes in the C API
--------------------
...
...
Lib/imp.py
Dosyayı görüntüle @
c0d91aff
...
...
@@ -30,7 +30,7 @@ import warnings
warnings
.
warn
(
"the imp module is deprecated in favour of importlib; "
"see the module's documentation for alternative uses"
,
Pending
DeprecationWarning
,
stacklevel
=
2
)
DeprecationWarning
,
stacklevel
=
2
)
# DEPRECATED
SEARCH_ERROR
=
0
...
...
Lib/pkgutil.py
Dosyayı görüntüle @
c0d91aff
...
...
@@ -180,7 +180,7 @@ iter_importer_modules.register(
def
_import_imp
():
global
imp
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
'ignore'
,
Pending
DeprecationWarning
)
warnings
.
simplefilter
(
'ignore'
,
DeprecationWarning
)
imp
=
importlib
.
import_module
(
'imp'
)
class
ImpImporter
:
...
...
Misc/NEWS
Dosyayı görüntüle @
c0d91aff
...
...
@@ -63,6 +63,8 @@ Core and Builtins
Library
-------
- Move the imp module from a PendingDeprecationWarning to DeprecationWarning.
- Issue #25407: Remove mentions of the formatter module being removed in
Python 3.6.
...
...
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