diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-09 03:15:55 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-09 03:15:55 +0200 |
commit | 247d3a446955ddbd35ffb3db66896d6013894cb3 (patch) | |
tree | 0dd1ba709c49fe8a25e2b3d865e31c6d65ceaafb /psutil/_common.py | |
parent | 7828b9c1e4dd4fa5df5b0681850d81d24afdf015 (diff) | |
download | psutil-247d3a446955ddbd35ffb3db66896d6013894cb3.tar.gz |
avoid to unnecessarily populate reminder_keys dict
Diffstat (limited to 'psutil/_common.py')
-rw-r--r-- | psutil/_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_common.py b/psutil/_common.py index 67150a78..5e11b952 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -523,8 +523,8 @@ class _WrapNumbers: remkey = (key, i) if input_value < old_value: self.reminders[name][remkey] += old_value + self.reminder_keys[name][key].append(remkey) bits.append(input_value + self.reminders[name][remkey]) - self.reminder_keys[name][key].append(remkey) new_dict[key] = input_nt._make(bits) |