diff options
author | Ingela Anderton Andin <[email protected]> | 2013-11-25 10:11:42 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-11-25 10:11:42 +0100 |
commit | 9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465 (patch) | |
tree | a9f40a478b4656ecf2ecad386f3355e24dd678bf /lib/ssh/src/ssh_io.erl | |
parent | 90c8450bb691a7b57ce326fddd1f44ef01db390f (diff) | |
download | otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.tar.gz otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.tar.bz2 otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.zip |
ssh: Correct arity in ssh_no_io.erl
Also remove import statement as it makes code less intuitive
Diffstat (limited to 'lib/ssh/src/ssh_io.erl')
-rw-r--r-- | lib/ssh/src/ssh_io.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_io.erl b/lib/ssh/src/ssh_io.erl index 01fc713569..832b144db9 100644 --- a/lib/ssh/src/ssh_io.erl +++ b/lib/ssh/src/ssh_io.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2005-2012. All Rights Reserved. +%% Copyright Ericsson AB 2005-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -24,7 +24,6 @@ -module(ssh_io). -export([yes_no/2, read_password/2, read_line/2, format/2]). --import(lists, [reverse/1]). -include("ssh.hrl"). read_line(Prompt, Ssh) -> @@ -81,7 +80,7 @@ format(Fmt, Args) -> trim(Line) when is_list(Line) -> - reverse(trim1(reverse(trim1(Line)))); + lists:reverse(trim1(lists:reverse(trim1(Line)))); trim(Other) -> Other. trim1([$\s|Cs]) -> trim(Cs); |