Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes function to key in docs of wrap_numbers() #1993

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions psutil/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def run(self, input_dict, name):
return new_dict

def cache_clear(self, name=None):
"""Clear the internal cache, optionally only for function 'name'."""
"""Clear the internal cache, optionally only for function's 'name'."""
with self.lock:
if name is None:
self.cache.clear()
Expand All @@ -691,7 +691,7 @@ def cache_info(self):


def wrap_numbers(input_dict, name):
"""Given an `input_dict` and a function `name`, adjust the numbers
"""Given an `input_dict` and a function's `name`, adjust the numbers
which "wrap" (restart from zero) across different calls by adding
"old value" to "new value" and return an updated dict.
"""
Expand Down