GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Removing eprint · sreecodeslayer/deepdiff@3998bea

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deepdiff
    • deepdiff.py
  • docs
    • index.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deepdiff/deepdiff.py‎

Copy file name to clipboardExpand all lines: deepdiff/deepdiff.py
+4-9Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@
5353
'oldvalue': 'old_value'}
5454

5555

56-
def eprint(*args, **kwargs):
57-
"""print to stdout written by @MarcH"""
58-
print(*args, file=sys.stderr, **kwargs)
59-
60-
6156
def order_unordered(data):
6257
"""
6358
orders unordered data.
@@ -106,7 +101,7 @@ def __getitem__(self, old_key):
106101
class DeepDiff(RemapDict):
107102

108103
r"""
109-
**DeepDiff v 1.6.0**
104+
**DeepDiff v 1.7.0**
110105
111106
Deep Difference of dictionaries, iterables, strings and almost any other object.
112107
It will recursively look for all the changes.
@@ -536,9 +531,9 @@ def add_hash(hashes, item_hash, item, i):
536531
try:
537532
cleaned_item = order_unordered(item)
538533
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)
542537
else:
543538
add_hash(hashes, item_hash, item, i)
544539
return hashes
Collapse file

‎docs/index.rst‎

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 numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Install from PyPi::
2020

2121

2222
**************
23-
DeepDiff 1.6.0
23+
DeepDiff 1.7.0
2424
**************
2525

2626
.. toctree::
@@ -77,3 +77,5 @@ Thanks to:
7777
- WangFenjin for unicode support
7878
- timoilya for comparing list of sets when ignoring order
7979
- 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

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.