Import code
This commit is contained in:
1 parent
9b88a6ecde
commit
054d387e37
20 files changed
+2348
No files matched your search
Executable
+17
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user