projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe175eb
)
gbp/git/vfs.py:fix initial_value must be str or None, not bytes
67/306967/1
devel
master
author
wangbiao
<biao716.wang@samsung.com>
Fri, 1 Mar 2024 05:26:57 +0000
(14:26 +0900)
committer
wangbiao
<biao716.wang@samsung.com>
Fri, 1 Mar 2024 05:26:57 +0000
(14:26 +0900)
Change-Id: I2855cfd6b6fb10b0bce863ddc3af57f83e158d89
Signed-off-by: wangbiao <biao716.wang@samsung.com>
gbp/git/vfs.py
patch
|
blob
|
history
diff --git
a/gbp/git/vfs.py
b/gbp/git/vfs.py
index
6f10442
..
7504ef7
100644
(file)
--- a/
gbp/git/vfs.py
+++ b/
gbp/git/vfs.py
@@
-29,8
+29,10
@@
class GitVfs(object):
"""
def __init__(self, content):
self._iter = iter
- self._data = io.StringIO(content)
-
+ try:
+ self._data = io.StringIO(content.decode())
+ except UnicodeDecodeError:
+ self._data = io.StringIO(content.decode("iso-8859-1"))
def readline(self):
return self._data.readline()