hooks: handle str & unicode types in Python 2
Make sure we treat unicode strings as strings under Python 2. When we fixed rh.utils.run_command to return string (unicode) decoded output instead of bytes, this code path broke. Bug: 139175041 Test: repo upload works in frameworks/base again Change-Id: Ifb0e5afc7bd6d724717beee25db81b4903d17bad
Loading