◆ __init__()
16 self.corr_added = list()
17 self.corr_removed = set()
18 self.corr_updated = list()
19 self.corr_version_error = set()
◆ generate()
def generate |
( |
|
self, |
|
|
|
files |
|
) |
| |
21 def generate(self, files):
24 def _print_cv(lst, msg=""):
26 console.print(f
" * `{c}` -> version `{v}`{msg}")
28 console = Console(width=100, color_system=
None)
30 console.print(f
"\n### Comparison: file {files[1]}\n")
31 console.print(f
"Old file: `{files[0]}`\n")
33 if len(self.corr_version_error):
34 console.print(
"\n#### Version errors\n")
35 console.print(
"These corrections should increase their version numbers:\n")
36 _print_cv(self.corr_version_error, msg=
" is already in use")
38 if len(self.corr_removed):
39 console.print(
"\n#### Removed corrections\n")
40 _print_cv(self.corr_removed)
42 if len(self.corr_added):
43 console.print(
"\n#### Added corrections\n")
44 for added
in self.corr_added:
47 if len(self.corr_updated):
48 console.print(
"\n#### Updated corrections\n")
49 for old, new
in self.corr_updated:
50 console.print(Columns([old, new], width=40, equal=
True, expand=
True))
52 if len(self.corr_version_error) + \
53 len(self.corr_removed) + \
54 len(self.corr_added) + \
55 len(self.corr_updated) == 0:
56 console.print(
"No significant difference in the corrections")
◆ status_code()
58 def status_code(self):
59 if len(self.corr_version_error):
◆ corr_added
◆ corr_removed
◆ corr_updated
◆ corr_version_error
The documentation for this class was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/tables/jsonpog-integration/script/compareFiles.py