GeezerVison is showing github.com — Removing eprint · sreecodeslayer/deepdiff@3998bea
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deepdiff/deepdiff.py +4-9Lines changed: 4 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 53 | 53 | 'oldvalue': 'old_value'} | 54 | 54 |
| 55 | 55 |
| 56 | | -def eprint(*args, **kwargs): | 57 | | - """print to stdout written by @MarcH""" | 58 | | - print(*args, file=sys.stderr, **kwargs) | 59 | | - | 60 | | - | 61 | 56 | def order_unordered(data): | 62 | 57 | """ | 63 | 58 | orders unordered data. | @@ -106,7 +101,7 @@ def __getitem__(self, old_key): | 106 | 101 | class DeepDiff(RemapDict): | 107 | 102 |
| 108 | 103 | r""" | 109 | | - **DeepDiff v 1.6.0** | | 104 | + **DeepDiff v 1.7.0** | 110 | 105 |
| 111 | 106 | Deep Difference of dictionaries, iterables, strings and almost any other object. | 112 | 107 | It will recursively look for all the changes. | @@ -536,9 +531,9 @@ def add_hash(hashes, item_hash, item, i): | 536 | 531 | try: | 537 | 532 | cleaned_item = order_unordered(item) | 538 | 533 | item_hash = hash(pickle.dumps(cleaned_item)) | 539 | | - except Exception as e: | 540 | | - eprint("Can not produce a hash for %s item in %s and\ | 541 | | - thus not counting this object. %s" % (item, parent, e)) | | 534 | + except: | | 535 | + logger.error("Can not produce a hash for %s item in %s and\ | | 536 | + thus not counting this object." % (item, parent), exc_info=True) | 542 | 537 | else: | 543 | 538 | add_hash(hashes, item_hash, item, i) | 544 | 539 | return hashes | |
Collapse file Copy file name to clipboardExpand all lines: docs/index.rst +3-1Lines changed: 3 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ Install from PyPi:: | 20 | 20 |
| 21 | 21 |
| 22 | 22 | ************** | 23 | | -DeepDiff 1.6.0 | | 23 | +DeepDiff 1.7.0 | 24 | 24 | ************** | 25 | 25 |
| 26 | 26 | .. toctree:: | @@ -77,3 +77,5 @@ Thanks to: | 77 | 77 | - WangFenjin for unicode support | 78 | 78 | - timoilya for comparing list of sets when ignoring order | 79 | 79 | - Bernhard10 for significant digits comparison | | 80 | +- b-jazz for PEP257 cleanup, Standardize on full names, fixing line endings. | | 81 | +- Victor Hahn Castell @ Flexoptix for deep set comparison |
|