mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
upgrade to pyhton 3.9 syntax
using pyupgrade
This commit is contained in:
@ -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