diff options
author | Eric Hanchrow <ehanchrow@ine.com> | 2014-01-06 16:06:02 -0800 |
---|---|---|
committer | Eric Hanchrow <ehanchrow@ine.com> | 2014-01-06 16:06:20 -0800 |
commit | 6f5b435e4c78116686defbb141e312bf91806f2e (patch) | |
tree | 0251cba546eae42463e409c601cc362b818f4931 | |
parent | 6c88ef71a3fd9ffa1a7fd4f23c857031506e5161 (diff) | |
download | pexpect-6f5b435e4c78116686defbb141e312bf91806f2e.tar.gz |
ExceptionPexpect.__init__: invoke super's init
This avoids an exception in the following:
import pexpect
import pickle
pickle.loads(pickle.dumps(pexpect.EOF('hey you')))
-rw-r--r-- | pexpect/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py index ed5e1e4..21ef0ca 100644 --- a/pexpect/__init__.py +++ b/pexpect/__init__.py @@ -100,6 +100,7 @@ class ExceptionPexpect(Exception): ''' def __init__(self, value): + super(ExceptionPexpect, self).__init__(value) self.value = value def __str__(self): |