~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/ssh/src/ssh_io.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-06-11 12:18:07 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090611121807-ks7eb4xrt7dsysgx
Tags: 1:13.b.1-dfsg-1
* New upstream release.
* Removed unnecessary dependency of erlang-os-mon on erlang-observer and
  erlang-tools and added missing dependency of erlang-nox on erlang-os-mon
  (closes: #529512).
* Removed a patch to eunit application because the bug was fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
-import(lists, [reverse/1]).
28
28
 
29
29
 
30
 
read_line(Prompt) when list(Prompt) ->
 
30
read_line(Prompt) when is_list(Prompt) ->
31
31
    io:get_line(list_to_atom(Prompt));
32
 
read_line(Prompt) when atom(Prompt) ->
 
32
read_line(Prompt) when is_atom(Prompt) ->
33
33
    io:get_line(Prompt).
34
34
 
35
35
read_ln(Prompt) ->
65
65
    io:format(Fmt, Args).
66
66
 
67
67
 
68
 
trim(Line) when list(Line) ->
 
68
trim(Line) when is_list(Line) ->
69
69
    reverse(trim1(reverse(trim1(Line))));
70
70
trim(Other) -> Other.
71
71