From 74274698a9b87aeb10b8f0ec6b1322a0787c3b8f Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 12 Sep 2015 12:34:25 +0100 Subject: Deprecation warning in pexpect.screen --- pexpect/screen.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pexpect/screen.py') diff --git a/pexpect/screen.py b/pexpect/screen.py index efe9ee5..0bced89 100644 --- a/pexpect/screen.py +++ b/pexpect/screen.py @@ -27,6 +27,13 @@ import codecs import copy import sys +import warnings + +warnings.warn(("pexpect.screen and pexpect.ANSI are deprecated. " + "We recommend using pyte to emulate a terminal screen: " + "https://pypi.python.org/pypi/pyte"), + stacklevel=2) + NUL = 0 # Fill character; ignored on input. ENQ = 5 # Transmit answerback message. BEL = 7 # Ring the bell. -- cgit v1.2.1