Skip to content

Commit

Permalink
remove deprecated memory_info_ex()
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 28, 2024
1 parent 623e6e0 commit d68cedb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions psutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,6 @@ def memory_info(self):
"""
return self._proc.memory_info()

@_common.deprecated_method(replacement="memory_info")
def memory_info_ex(self):
return self.memory_info()

def memory_full_info(self):
"""This method returns the same information as memory_info(),
plus, on some platform (Linux, macOS, Windows), also provides
Expand Down Expand Up @@ -1358,7 +1354,7 @@ def wait(self, timeout=None):
x for x in dir(Process) if not x.startswith("_") and x not in
{'send_signal', 'suspend', 'resume', 'terminate', 'kill', 'wait',
'is_running', 'as_dict', 'parent', 'parents', 'children', 'rlimit',
'memory_info_ex', 'connections', 'oneshot'}
'connections', 'oneshot'}
}
# fmt: on

Expand Down
1 change: 0 additions & 1 deletion psutil/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,6 @@ class process_namespace:
('children', (), {'recursive': True}),
('connections', (), {}), # deprecated
('is_running', (), {}),
('memory_info_ex', (), {}), # deprecated
('oneshot', (), {}),
('parent', (), {}),
('parents', (), {}),
Expand Down
1 change: 0 additions & 1 deletion scripts/internal/print_api_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def main():
'as_dict',
'parent',
'parents',
'memory_info_ex',
'oneshot',
'pid',
'rlimit',
Expand Down

0 comments on commit d68cedb

Please sign in to comment.