diff options
author | Noah Spurrier <noah@squaretrade.com> | 2012-10-25 16:03:06 -0700 |
---|---|---|
committer | Noah Spurrier <noah@squaretrade.com> | 2012-10-25 16:03:06 -0700 |
commit | 1ebbd81cb88cf6d23e77168df0e10b81362d1822 (patch) | |
tree | d8f2fcabbb28c56ee35bf80fc8ee48840450dd48 /pexpect/fdpexpect.py | |
parent | b5dacf63d8adf090db918e3016ac1450c0f80d33 (diff) | |
download | pexpect-1ebbd81cb88cf6d23e77168df0e10b81362d1822.tar.gz |
Added backward compatability back to Python 2.2.
I removed some of the changes I was working on for Python3 (mostly
exception systax). The reason for doing this is that it's impossible to
maintain a single source file that supports both Python2 and Python3, so
Python3 is never going to happen in this code anyway.** This is one of
the most annoying things about Python3. Maybe I'll create a build script
that strips out the Python3 crap so I can at least maintain one set of
source files that can be retargeted to Python2 or Python3 as a
pre-install step.
** This may not be strictly true, but short of adding
conditional tests and exceptions to handle run-time errors
I can't think of a clean way to do this.
Diffstat (limited to 'pexpect/fdpexpect.py')
-rw-r--r-- | pexpect/fdpexpect.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/fdpexpect.py b/pexpect/fdpexpect.py index 6152497..38b09b6 100644 --- a/pexpect/fdpexpect.py +++ b/pexpect/fdpexpect.py @@ -1,5 +1,6 @@ '''This is like pexpect, but it will work with any file descriptor that you pass it. You are reponsible for opening and close the file descriptor. +This allows you to use Pexpect with sockets and named pipes (FIFOs). PEXPECT LICENSE |