~ubuntu-branches/debian/squeeze/erlang/squeeze

« 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-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

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