htmlcmp 1.0.9__tar.gz → 1.0.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: htmlcmp
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: Compare HTML files by rendered output
5
5
  Author: Andreas Stefl
6
6
  Maintainer-email: Andreas Stefl <stefl.andreas@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "htmlcmp"
3
- version = "1.0.9"
3
+ version = "1.0.10"
4
4
  description = "Compare HTML files by rendered output"
5
5
  classifiers = []
6
6
  authors = [
@@ -44,16 +44,16 @@ def compare_html(a, b, browser=None, diff_output=None):
44
44
  def compare_files(a, b, **kwargs):
45
45
  if filecmp.cmp(a, b):
46
46
  return True
47
- if a.endswith(".json"):
47
+ if a.suffix == ".json":
48
48
  return compare_json(a, b)
49
- if a.endswith(".html"):
49
+ if a.suffix == ".html":
50
50
  return compare_html(a, b, **kwargs)
51
51
 
52
52
 
53
53
  def comparable_file(path):
54
- if path.endswith(".json"):
54
+ if path.suffix == ".json":
55
55
  return True
56
- if path.endswith(".html"):
56
+ if path.suffix == ".html":
57
57
  return True
58
58
  return False
59
59
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: htmlcmp
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: Compare HTML files by rendered output
5
5
  Author: Andreas Stefl
6
6
  Maintainer-email: Andreas Stefl <stefl.andreas@gmail.com>
File without changes
File without changes
File without changes