summaryrefslogtreecommitdiff
path: root/numpy/core/einsumfunc.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-12-01 10:15:57 -0800
committerGitHub <noreply@github.com>2018-12-01 10:15:57 -0800
commite0122a4fc3bf9453220c2802a50c253a381b59c9 (patch)
tree24f7828dc7feeba92d6ca739b132818847952b18 /numpy/core/einsumfunc.py
parent0ee245bc6df60b911fafe81a743ec2a68a063c20 (diff)
parente4c14fb48851bc38d59c57dd2c2ed4993f7f8a42 (diff)
downloadnumpy-e0122a4fc3bf9453220c2802a50c253a381b59c9.tar.gz
Merge pull request #12443 from rth/set-litteral
MAINT Use set litterals
Diffstat (limited to 'numpy/core/einsumfunc.py')
-rw-r--r--numpy/core/einsumfunc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py
index 963c696ae..832ff3057 100644
--- a/numpy/core/einsumfunc.py
+++ b/numpy/core/einsumfunc.py
@@ -169,7 +169,7 @@ def _optimal_path(input_sets, output_set, idx_dict, memory_limit):
Examples
--------
>>> isets = [set('abd'), set('ac'), set('bdc')]
- >>> oset = set('')
+ >>> oset = set()
>>> idx_sizes = {'a': 1, 'b':2, 'c':3, 'd':4}
>>> _path__optimal_path(isets, oset, idx_sizes, 5000)
[(0, 2), (0, 1)]
@@ -340,7 +340,7 @@ def _greedy_path(input_sets, output_set, idx_dict, memory_limit):
Examples
--------
>>> isets = [set('abd'), set('ac'), set('bdc')]
- >>> oset = set('')
+ >>> oset = set()
>>> idx_sizes = {'a': 1, 'b':2, 'c':3, 'd':4}
>>> _path__greedy_path(isets, oset, idx_sizes, 5000)
[(0, 2), (0, 1)]