diff options
author | Kotresh HR <khiremat@redhat.com> | 2020-01-10 16:48:14 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-01-14 19:44:28 +0000 |
commit | 21f1115b2575cfd421224e00a14628c8b6d32ae2 (patch) | |
tree | b2584169db395868daaabd384d53674438110341 /tools/glusterfind/src/__init__.py | |
parent | 76ef90aac43f36bea581b8be97d1204cd7867b0b (diff) |
glusterfind: Fix py2/py3 issues
1. In dictionary values(), returns list in py2 and not in py3.
So explicitly convert it into list.
2. xattr module returns values in bytes. So explicitly convert
them to str to work both with py2 and py3
Backport of:
> fixes: bz#1789439
> Change-Id: I27a639cda4f7a4ece9744a97c3d16e247906bd94
> Signed-off-by: Kotresh HR <khiremat@redhat.com>
> (cherry picked from commit 45894c39a4d05ed1f6a6f1bdbeafb5fe74ef29c3)
Change-Id: I27a639cda4f7a4ece9744a97c3d16e247906bd94
Fixes: bz#1790423
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'tools/glusterfind/src/__init__.py')
0 files changed, 0 insertions, 0 deletions