mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 19:01:17 +00:00
upgrade to pyhton 3.9 syntax
using pyupgrade
This commit is contained in:
11 files changed
+16
-18
No files matched your search
@@ -66,7 +66,7 @@ if __name__ == '__main__':
|
||||
|
||||
print("Checking development branch")
|
||||
|
||||
pattern = "^\d+(\.\d+)+ dev$"
|
||||
pattern = r"^\d+(\.\d+)+ dev$"
|
||||
|
||||
result = re.match(pattern, version)
|
||||
|
||||
@@ -82,7 +82,7 @@ if __name__ == '__main__':
|
||||
|
||||
print("Checking release branch")
|
||||
|
||||
pattern = "^\d+(\.\d+)+$"
|
||||
pattern = r"^\d+(\.\d+)+$"
|
||||
|
||||
result = re.match(pattern, version)
|
||||
|
||||
|
||||
Reference in new issue
Block a user