diff @pyobject/subsref.m @ 245:72a2f508f2d8

maint: Use Octave keywords for ending code blocks * @pyobject/dummy.m: Use "endfunction" instead of "end". * @pyobject/pyobject.m: Use "endproperties" instead of "end". * @pyobject/subsref.m: Use "endif" instead of "end".
author Mike Miller <mtmiller@octave.org>
date Wed, 27 Jul 2016 17:01:28 -0700
parents 46382ade33e4
children 4acc64f89d67
line wrap: on
line diff
--- a/@pyobject/subsref.m	Wed Jul 27 16:56:15 2016 -0700
+++ b/@pyobject/subsref.m	Wed Jul 27 17:01:28 2016 -0700
@@ -71,13 +71,13 @@
   ## deal with additional indexing (might be recursive)
   if (length (idx) > 1)
     r = subsref (r, idx(2:end));
-  end
+  endif
 
   ## unpack results, ensure "ans" works (see also pycall)
   isNone = pyeval ("lambda x: x is None");
   if (nargout > 0 || ! pycall (isNone, r))
     varargout{1} = r;
-  end
+  endif
 endfunction