tag regexp strings
This commit is contained in:
parent
454c4eeaa5
commit
bde25f5762
3 changed files with 6 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ def write_if_new(path, data, mode=''):
|
|||
old = ""
|
||||
is_new = data != old
|
||||
if path.endswith(".kdenlive"):
|
||||
is_new = re.sub('\{.{36}\}', '', data) != re.sub('\{.{36}\}', '', old)
|
||||
is_new = re.sub(r'\{.{36}\}', '', data) != re.sub(r'\{.{36}\}', '', old)
|
||||
if is_new:
|
||||
with open(path, write_mode) as fd:
|
||||
fd.write(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue