-
-
Notifications
You must be signed in to change notification settings - Fork 254
Closed
Description
Describe the bug
DeepDiff falls with an exception while comparing dicts with keys containing both single and double quotes.
To Reproduce
import deepdiff
deepdiff.DeepDiff({'''a'"a''': 1}, {'''a'"a''': 2})Expected behavior
A comparison result is being returned.
OS, DeepDiff version and Python version (please complete the following information):
- DeepDiff Version: 6.7.0
Additional context
The branch to handle both single and double quotes in stringify_element doesn't define result variable which is used later in return statement which causes exception (UnboundLocalError: local variable 'result' referenced before assignment) to be triggered.
Metadata
Metadata
Assignees
Labels
No labels