Skip to content

Commit 97ea983

Browse files
committed
use template has_python logic
1 parent a5e0d81 commit 97ea983

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

+stdlib/set_modtime.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
case 'java'
2424
i = stdlib.java.set_modtime(file, time);
2525
case 'python'
26-
if stdlib.matlabOlderThan('R2022a'), continue, end
27-
i = stdlib.python.set_modtime(file, time);
26+
if stdlib.has_python()
27+
i = stdlib.python.set_modtime(file, time);
28+
end
2829
case 'sys'
2930
i = stdlib.sys.set_modtime(file, time);
3031
otherwise

0 commit comments

Comments
 (0)