Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
remove superfluous another intermediary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ARF committed May 5, 2015
1 parent f5fa4ab commit b15ba87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bcolz/ctable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,7 @@ def __getitem__(self, key):
except:
raise IndexError(
"key cannot be converted to an array of indices")
result = self._outstruc_fromindices(key)
return result.ra
return self._outstruc_fromindices(key).ra
# A boolean array (case of fancy indexing)
elif hasattr(key, "dtype"):
if key.dtype.type == np.bool_:
Expand Down

0 comments on commit b15ba87

Please sign in to comment.