[pyatspi2: 1/2] Fix attributeListToHash() in case there’s a colon in an attr value
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2: 1/2] Fix attributeListToHash() in case there’s a colon in an attr value
- Date: Mon, 8 Nov 2021 00:49:45 +0000 (UTC)
commit 6b276fdf0cc8ac4c7e3efc8aa4290971a6196844
Author: Valentin Villenave <vvillenave hypra fr>
Date: Thu Nov 4 14:44:44 2021 +0100
Fix attributeListToHash() in case there’s a colon in an attr value
pyatspi/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pyatspi/utils.py b/pyatspi/utils.py
index 289faf9f..c42883bf 100644
--- a/pyatspi/utils.py
+++ b/pyatspi/utils.py
@@ -344,7 +344,7 @@ def rectToList(rect):
def attributeListToHash(list):
ret = dict()
for item in list:
- [key, val] = item.split(":")
+ [key, val] = item.split(":", 1)
val = val.replace(":", r"\:")
if ret.__contains__(key):
ret[key] = ret[key] + ":" + val
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]