Skip to content

Commit 6122442

Browse files
committed
use split instead of strsplit
1 parent 9e7291b commit 6122442

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

+stdlib/private/pvt_python_version.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
vi = py.sys.version_info;
1414
v = [double(vi.major), double(vi.minor), double(vi.micro)];
1515

16-
vv = strsplit(vs, '.');
17-
assert(str2double(vv{1}) == v(1), "stdlib:python_version:ValueError", "Python major version %s did not match pyenv %d", vv{1}, v(1))
18-
assert(str2double(vv{2}) == v(2), "stdlib:python_version:ValueError", "Python minor version %s did not match pyenv %d", vv{1}, v(1))
16+
vv = split(vs, ".");
17+
assert(str2double(vv(1)) == v(1), "stdlib:python_version:ValueError", "Python major version %s did not match pyenv %d", vv(1), v(1))
18+
assert(str2double(vv(2)) == v(2), "stdlib:python_version:ValueError", "Python minor version %s did not match pyenv %d", vv(2), v(2))
1919

2020
end

+stdlib/version_atleast.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
ref (1,1) string
1515
end
1616

17-
parts1 = str2double(strsplit(in, '.'));
18-
parts2 = str2double(strsplit(ref, '.'));
17+
parts1 = str2double(split(in, "."));
18+
parts2 = str2double(split(ref, "."));
1919

2020
r = true;
2121

0 commit comments

Comments
 (0)