smem throws an exception when injecting smemcap output into smem using the -S
argument:
Traceback (most recent call last):
File "/usr/bin/smem", line 727, in <module>
showpids()
File "/usr/bin/smem", line 299, in showpids
showtable(pt.keys(), fields, columns.split(), options.sort or 'pss')
File "/usr/bin/smem", line 520, in showtable
st = memory()['swaptotal']
File "/usr/bin/smem", line 193, in memory
m = f.match(l)
TypeError: cannot use a string pattern on a bytes-like object
python3's tarfile returns bytes, whereas all of the rest of
the code assumes str.