aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/system_information.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-06-30 12:12:22 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:49 +0200
commit63112ac909a7d14ed22488f68f0622d0378f9b80 (patch)
treefcc126929e787aeba1a64d3f141da41030f92ebf /lib/runtime_tools/src/system_information.erl
parent1557d8eca4fa0daaaad470eb68edc86ca7997aab (diff)
downloadotp-63112ac909a7d14ed22488f68f0622d0378f9b80.tar.gz
otp-63112ac909a7d14ed22488f68f0622d0378f9b80.tar.bz2
otp-63112ac909a7d14ed22488f68f0622d0378f9b80.zip
runtime_tools: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/runtime_tools/src/system_information.erl')
-rw-r--r--lib/runtime_tools/src/system_information.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/runtime_tools/src/system_information.erl b/lib/runtime_tools/src/system_information.erl
index df25297eb9..92109c9a74 100644
--- a/lib/runtime_tools/src/system_information.erl
+++ b/lib/runtime_tools/src/system_information.erl
@@ -590,12 +590,12 @@ vsnstr2vsn(VsnStr) ->
list_to_tuple(lists:map(fun (Part) ->
list_to_integer(Part)
end,
- string:tokens(VsnStr, "."))).
+ string:lexemes(VsnStr, "."))).
rtdepstrs2rtdeps([]) ->
[];
rtdepstrs2rtdeps([RTDep | RTDeps]) ->
- [AppStr, VsnStr] = string:tokens(RTDep, "-"),
+ [AppStr, VsnStr] = string:lexemes(RTDep, "-"),
[{list_to_atom(AppStr), vsnstr2vsn(VsnStr)} | rtdepstrs2rtdeps(RTDeps)].
build_app_table([], AppTab) ->