Skip to content

Commit

Permalink
Merge pull request #12 from jakirkham/use_ternary_indices
Browse files Browse the repository at this point in the history
Flatten `indices` default dtype check
  • Loading branch information
jakirkham committed Mar 9, 2017
2 parents d6f22be + 91e3384 commit 7066caf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xnumpy/core.py
Expand Up @@ -358,8 +358,7 @@ def indices(shape, dtype=None):
except NameError:
xrange = range

if dtype is None:
dtype = int
dtype = dtype if dtype is not None else int
dtype = numpy.dtype(dtype)

grid = []
Expand Down

0 comments on commit 7066caf

Please sign in to comment.