Skip to content

Commit

Permalink
qmemman: fix meminfo parsing for python 3
Browse files Browse the repository at this point in the history
One more place not converted to python 3.
  • Loading branch information
marmarek committed Jun 12, 2017
1 parent 3564250 commit 9015414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qubes/qmemman/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9015414

Please sign in to comment.