Skip to content

Commit 889b949

Browse files
committed
In Matrix, just use tuples for the term pair keys, instead of building up strings.
1 parent 2c6e26e commit 889b949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textplot/matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def key(self, term1, term2):
4444
str: The dictionary key.
4545
"""
4646

47-
return '_'.join(sorted((term1, term2)))
47+
return tuple(sorted((term1, term2)))
4848

4949

5050
def set_pair(self, term1, term2, value, **kwargs):

0 commit comments

Comments
 (0)