diff --git a/buildozer/test.py b/buildozer/test.py index faab85f9..76bf6174 100644 --- a/buildozer/test.py +++ b/buildozer/test.py @@ -1,13 +1,13 @@ import re -f=open("pubspec.json") -print (f) -txt=f.read().replace('\n', '') -print (txt) -print () +f = open("pubspec.json") +print(f) +txt = f.read().replace('\n', '') +print(txt) +print() -mg = re.search('versionCode[:"\s]+(\d+)',txt) -print (mg.group(1)) +mg = re.search(r'versionCode[:"\s]+(\d+)', txt) +print(mg.group(1)) -ng = re.search('versionName[:"\s]+([\d.]+)',txt) -print (ng.group(1)) +ng = re.search(r'versionName[:"\s]+([\d.]+)', txt) +print(ng.group(1))