コード例 #1
0
ファイル: fastagi.py プロジェクト: invitecomm/pystrix
    def __init__(self, rfile, wfile, debug=False):
        """
        Associates I/O with `rfile` and `wfile`.

        `debug` should only be turned on for library development.
        """
        self._rfile = rfile
        self._wfile = wfile

        _AGI.__init__(self, debug)
コード例 #2
0
ファイル: fastagi.py プロジェクト: abhishekmurthy/pystrix
    def __init__(self, rfile, wfile, debug=False):
        """
        Associates I/O with `rfile` and `wfile`.

        `debug` should only be turned on for library development.
        """
        self._rfile = rfile
        self._wfile = wfile
        
        _AGI.__init__(self, debug)
コード例 #3
0
ファイル: agi.py プロジェクト: ramzed/pystrix
    def __init__(self, debug=False):
        """
        Binds the SIGHUP signal and associates I/O with stdin/stdout.

        `debug` should only be turned on for library development.
        """
        signal.signal(signal.SIGHUP, self._handle_sighup)
        self._rfile = sys.stdin
        self._wfile = sys.stdout

        _AGI.__init__(self, debug)
コード例 #4
0
ファイル: agi.py プロジェクト: abhishekmurthy/pystrix
    def __init__(self, debug=False):
        """
        Binds the SIGHUP signal and associates I/O with stdin/stdout.

        `debug` should only be turned on for library development.
        """
        signal.signal(signal.SIGHUP, self._handle_sighup)
        self._rfile = sys.stdin
        self._wfile = sys.stdout
        
        _AGI.__init__(self, debug)