From 9015414119defa30b87b8dd7b785dd11e803449a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 12 Jun 2017 09:52:05 +0200 Subject: [PATCH] qmemman: fix meminfo parsing for python 3 One more place not converted to python 3. --- qubes/qmemman/algo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubes/qmemman/algo.py b/qubes/qmemman/algo.py index 3beef4b04..9dc766c38 100644 --- a/qubes/qmemman/algo.py +++ b/qubes/qmemman/algo.py @@ -49,12 +49,12 @@ def sanitize_and_parse_meminfo(untrusted_meminfo): # not new syntax - try the old one untrusted_dict = {} # split meminfo contents into lines - untrusted_lines = string.split(untrusted_meminfo, "\n") + untrusted_lines = untrusted_meminfo.split("\n") for untrusted_lines_iterator in untrusted_lines: # split a single meminfo line into words - untrusted_words = string.split(untrusted_lines_iterator) + untrusted_words = untrusted_lines_iterator.split() if len(untrusted_words) >= 2: - untrusted_dict[string.rstrip(untrusted_words[0], ":")] = \ + untrusted_dict[untrusted_words[0].rstrip(":")] = \ untrusted_words[1] # sanitize start