Load stack.json as str instead of bytes for Py3.5
commit5369f4cdf8cd0e516becab39ec559e36fbd8e73a
authorPeter Grayson <pete@jpgrayson.net>
Wed, 22 Sep 2021 03:49:36 +0000 (21 23:49 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Wed, 22 Sep 2021 03:53:15 +0000 (21 23:53 -0400)
tree0b6ca7e2328069679b44e33885caf3a57238bf9c
parent7641796356f0e22058659a7dc9a33acc201d06b5
Load stack.json as str instead of bytes for Py3.5

To retain compatibility with Python 3.5, pre-decode stack.json into a
str before calling json.loads(). (In Python>=3.6 json.loads() can operate
on bytes.)

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/lib/log.py
stgit/lib/stackupgrade.py