Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gwtnb committed Jan 16, 2017
1 parent e71ae3b commit 9b57198
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cupy/core/internal.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ cpdef slice complete_slice(slice slc, Py_ssize_t dim):
step = _extract_slice_element(slc.step)
except TypeError:
raise TypeError(
'slice.step must be int or None or have __index__ method: {}'.format(slc))
'slice.step must be int or None or have __index__ method: '
'{}'.format(slc))

if step == 0:
raise ValueError('Slice step must be nonzero.')
Expand All @@ -171,7 +172,8 @@ cpdef slice complete_slice(slice slc, Py_ssize_t dim):
start = _extract_slice_element(slc.start)
except TypeError:
raise TypeError(
'slice.start must be int or None or have __index__ method: {}'.format(slc))
'slice.start must be int or None or have __index__ method: '
'{}'.format(slc))

if start < 0:
start += dim
Expand All @@ -182,7 +184,8 @@ cpdef slice complete_slice(slice slc, Py_ssize_t dim):
stop = _extract_slice_element(slc.stop)
except TypeError:
raise TypeError(
'slice.stop must be int or None or have __index__ method: {}'.format(slc))
'slice.stop must be int or None or have __index__ method: '
'{}'.format(slc))

if stop < 0:
stop += dim
Expand Down

0 comments on commit 9b57198

Please sign in to comment.