From f143d5fd0047761c767dd6504e2ff20fdcf6502b Mon Sep 17 00:00:00 2001 From: poing Date: Thu, 8 Sep 2016 11:01:10 +0900 Subject: [PATCH] Focus on UTF8 --- asterisk/agi.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/asterisk/agi.py b/asterisk/agi.py index f19e9a0..183761c 100755 --- a/asterisk/agi.py +++ b/asterisk/agi.py @@ -1,6 +1,6 @@ -#! /usr/bin/env python -# -*- coding: utf-8 -*- -# vim:fenc=utf-8 +-#!/usr/bin/env python2 +-# vim: set et sw=4: + """ .. module:: agi :synopsis: This module contains functions and classes to implment AGI scripts in python. @@ -27,10 +27,6 @@ import sys import pprint import re import signal -import sys -reload(sys) -sys.setdefaultencoding("utf-8") - DEFAULT_TIMEOUT = 2000 # 2sec timeout used as default for functions that take timeouts DEFAULT_RECORD = 20000 # 20sec record time