Mercurial > pytave
changeset 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 |
files | @pyobject/dummy.m @pyobject/pyobject.m @pyobject/subsref.m |
diffstat | 3 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/@pyobject/dummy.m Wed Jul 27 16:56:15 2016 -0700 +++ b/@pyobject/dummy.m Wed Jul 27 17:01:28 2016 -0700 @@ -128,5 +128,4 @@ ## @end defmethod function dummy (x) - -end +endfunction
--- a/@pyobject/pyobject.m Wed Jul 27 16:56:15 2016 -0700 +++ b/@pyobject/pyobject.m Wed Jul 27 17:01:28 2016 -0700 @@ -30,7 +30,7 @@ classdef pyobject < handle properties id - end + endproperties methods (Static) function x = fromPythonVarName (pyvarname)
--- 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