From 7e0dc533de7bf61441d79a5a86d7708276e9650d Mon Sep 17 00:00:00 2001 From: Randall Degges Date: Tue, 16 Feb 2016 13:37:36 -0800 Subject: [PATCH] Fixing bug in AGI class. Fixes #21. --- asterisk/agi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asterisk/agi.py b/asterisk/agi.py index 01e3ba9..90ed288 100755 --- a/asterisk/agi.py +++ b/asterisk/agi.py @@ -86,14 +86,14 @@ class AGI: """ def __init__(self, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr): + self.stdin = stdin + self.stdout = stdout + self.stderr = stderr self._got_sighup = False signal.signal(signal.SIGHUP, self._handle_sighup) # handle SIGHUP self.stderr.write('ARGS: ') self.stderr.write(str(sys.argv)) self.stderr.write('\n') - self.stdin = stdin - self.stdout = stdout - self.stderr = stderr self.env = {} self._get_agi_env()