Skip to content

Commit 217536e

Browse files
fix qa
1 parent 4afd414 commit 217536e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pyflow/deployment.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from __future__ import print_function
22

3+
import difflib
34
import hashlib
45
import os
56
import shutil
6-
import difflib
7+
78
from pyflow.html import FileListHTMLWrapper
89

910

@@ -54,9 +55,13 @@ def deploy_uniqueness_check(self, source, target):
5455
if self.scripts_map[target] != source_hash:
5556
with open(target, "r") as f:
5657
old_content = f.read()
57-
diff = difflib.unified_diff(old_content.splitlines(), source.splitlines(), lineterm='')
58-
diff_str = '\n'.join(diff)
59-
print(f"\nERROR! Differences between already-deployed script and current one:\n{diff_str}")
58+
diff = difflib.unified_diff(
59+
old_content.splitlines(), source.splitlines(), lineterm=""
60+
)
61+
diff_str = "\n".join(diff)
62+
print(
63+
f"\nERROR! Differences between already-deployed script and current one:\n{diff_str}"
64+
)
6065
raise RuntimeError(
6166
"Scripts deployed with the same name must be unique within one AnchorFamily or Suite: {}".format(
6267
target

0 commit comments

Comments
 (0)