File: echo_w_prompt.py

package info (click to toggle)
pexpect 4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: python: 10,774; makefile: 138; sh: 73; ansic: 69
file content (15 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-
from __future__ import print_function

try:
    raw_input
except NameError:
    raw_input = input

while True:
    try:
        a = raw_input('<in >')
    except EOFError:
        print('<eof>')
        break
    print('<out>', a, sep='')