imdiff 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {imdiff-0.2.2 → imdiff-0.2.3}/PKG-INFO +1 -1
  2. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/cli/dir_diff.py +2 -2
  3. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/cli/image_diff.py +2 -2
  4. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/version.py +1 -1
  5. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/PKG-INFO +1 -1
  6. {imdiff-0.2.2 → imdiff-0.2.3}/LICENSE +0 -0
  7. {imdiff-0.2.2 → imdiff-0.2.3}/README.md +0 -0
  8. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/__init__.py +0 -0
  9. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/__main__.py +0 -0
  10. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/cli/__init__.py +0 -0
  11. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/cli/main.py +0 -0
  12. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/__init__.py +0 -0
  13. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/dir_diff_main_window.py +0 -0
  14. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/file_list_frame.py +0 -0
  15. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/image_canvas.py +0 -0
  16. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/image_diff_main_window.py +0 -0
  17. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/image_frame.py +0 -0
  18. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/image_scaling.py +0 -0
  19. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/status_bar.py +0 -0
  20. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/transient_menu.py +0 -0
  21. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/gui/zoom_menu.py +0 -0
  22. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/image_comparator.py +0 -0
  23. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/list_files.py +0 -0
  24. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff/util.py +0 -0
  25. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/SOURCES.txt +0 -0
  26. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/dependency_links.txt +0 -0
  27. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/entry_points.txt +0 -0
  28. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/requires.txt +0 -0
  29. {imdiff-0.2.2 → imdiff-0.2.3}/imdiff.egg-info/top_level.txt +0 -0
  30. {imdiff-0.2.2 → imdiff-0.2.3}/pyproject.toml +0 -0
  31. {imdiff-0.2.2 → imdiff-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
@@ -33,12 +33,12 @@ def print_diff(leftdir=None, rightdir=None):
33
33
  elif icmp.diff_info > rmse_threshold:
34
34
  print(f'image difference NRMSE {icmp.diff_info:.4f}: {subpath}')
35
35
  else:
36
- diff_output = difflib.unified_diff(
36
+ diff_output = list(difflib.unified_diff(
37
37
  left.read_text().splitlines(),
38
38
  right.read_text().splitlines(),
39
39
  fromfile=str(left),
40
40
  tofile=str(right),
41
- lineterm='')
41
+ lineterm=''))
42
42
  if diff_output:
43
43
  ndiffs += 1
44
44
  print('\n'.join(diff_output))
@@ -29,12 +29,12 @@ def print_diff(left, right):
29
29
  elif icmp.diff_info > rmse_threshold:
30
30
  print(f'Images {left} and {right} differ NRMSE: {icmp.diff_info}')
31
31
  else:
32
- diff_output = difflib.unified_diff(
32
+ diff_output = list(difflib.unified_diff(
33
33
  left.read_text().splitlines(),
34
34
  right.read_text().splitlines(),
35
35
  fromfile=str(left),
36
36
  tofile=str(right),
37
- lineterm='')
37
+ lineterm=''))
38
38
  if diff_output:
39
39
  ndiffs += 1
40
40
  print('\n'.join(diff_output))
@@ -1,2 +1,2 @@
1
- __version__ = '0.2.2'
1
+ __version__ = '0.2.3'
2
2
  version_info = __version__.split('.')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imdiff
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Compare image files in different directories
5
5
  Author-email: "John T. Goetz" <theodore.goetz@gmail.com>
6
6
  Project-URL: homepage, https://gitlab.com/johngoetz/imdiff
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes