Import code

This commit is contained in:
Paco8 committed 2023-01-22 16:20:27 +01:00
1 parent 9b88a6ecde
commit 054d387e37
20 files changed
+2348

No files matched your search

Executable
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python
# encoding: utf-8
#
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import unicode_literals, absolute_import, division
import io
import re
with io.open('addon.xml', 'r', encoding='utf-8') as handle:
text = handle.read()
m = re.search(r'movistar.*?version="(.*?)"', text, re.DOTALL)
if m:
print(m.group(1))