FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-150886: Remove unused importlib._bootstrap._object_name by gaborbernat · Pull Request #150884 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 0 additions & 6 deletions Lib/importlib/_bootstrap.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
# reference any injected objects! This includes not only global code but also
# anything specified at the class level.

def _object_name(obj):
try:
return obj.__qualname__
except AttributeError:
return type(obj).__qualname__

# Bootstrap-related code ######################################################

# Modules injected manually by _setup()
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Remove the private, undocumented function
``importlib._bootstrap._object_name()``. It had no caller after
``load_module()`` and its deprecation warnings were removed from
:mod:`importlib`.
Loading

Back | FazBrowse Home | New Git URL