Mercurial > pytave
changeset 244:46382ade33e4
maint: minor cosmetic fixes to cset 708715efa18e
* @pyobject/subsref.m: Remove superfluous brackets on varargout return value.
Remove redundant assert, Octave already errors if nargout is less than the
length of varargout.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 27 Jul 2016 16:56:15 -0700 |
parents | cc046496e173 |
children | 72a2f508f2d8 |
files | @pyobject/subsref.m |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/@pyobject/subsref.m Wed Jul 27 15:51:48 2016 -0700 +++ b/@pyobject/subsref.m Wed Jul 27 16:56:15 2016 -0700 @@ -32,7 +32,7 @@ ## @end defop -function [varargout] = subsref (x, idx) +function varargout = subsref (x, idx) t = idx(1); switch t.type @@ -77,7 +77,6 @@ isNone = pyeval ("lambda x: x is None"); if (nargout > 0 || ! pycall (isNone, r)) varargout{1} = r; - assert (nargout <= 1) end endfunction