qmemman: fix meminfo parsing for python 3
One more place not converted to python 3.
This commit is contained in:
		
							parent
							
								
									3564250298
								
							
						
					
					
						commit
						9015414119
					
				| @ -49,12 +49,12 @@ def sanitize_and_parse_meminfo(untrusted_meminfo): | |||||||
|     # not new syntax - try the old one |     # not new syntax - try the old one | ||||||
|     untrusted_dict = {} |     untrusted_dict = {} | ||||||
|     # split meminfo contents into lines |     # 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: |     for untrusted_lines_iterator in untrusted_lines: | ||||||
|         # split a single meminfo line into words |         # 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: |         if len(untrusted_words) >= 2: | ||||||
|             untrusted_dict[string.rstrip(untrusted_words[0], ":")] = \ |             untrusted_dict[untrusted_words[0].rstrip(":")] = \ | ||||||
|                 untrusted_words[1] |                 untrusted_words[1] | ||||||
| 
 | 
 | ||||||
|     # sanitize start |     # sanitize start | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki