startracker.py
def write(self, data):
        """
        Blocking read on file descriptor.

        @param data: ASCII data to write
        @type data: C{string}
        """
        if len(data) == 0:
            return
        if self.fd == 0:
            if sys.version_info[0] > 2:
                os.write(1, bytes(data, encoding='UTF-8'))
            else:
                os.write(1, data)
            return
        # need blocking IO for writing
        fl = fcntl.fcntl(self.fd, fcntl.F_GETFL)
        fcntl.fcntl(self.fd, fcntl.F_SETFL, fl & ~os.O_NONBLOCK)
        if sys.version_info[0] > 2:
            os.write(self.fd, bytes(data, encoding='UTF-8'))
        else:
            os.write(self.fd, data)

        Blocking read on file descriptor.

        @param data: ASCII data to write
        @type data: C{string}
        
Blocking read on file descriptor.
Blocking read on file descriptor .
def write(self, data):
        if len(data) == 0:
            return
        if self.fd == 0:
            if sys.version_info[0] > 2:
                os.write(1, bytes(data, encoding='UTF-8'))
            else:
                os.write(1, data)
            return
        fl = fcntl.fcntl(self.fd, fcntl.F_GETFL)
        fcntl.fcntl(self.fd, fcntl.F_SETFL, fl & ~os.O_NONBLOCK)
        if sys.version_info[0] > 2:
            os.write(self.fd, bytes(data, encoding='UTF-8'))
        else:
            os.write(self.fd, data)
def write ( self , data ) : if len ( data ) == 0 : return if self . fd == 0 : if sys . version_info [ 0 ] > 2 : os . write ( 1 , bytes ( data , encoding = 'UTF-8' ) ) else : os . write ( 1 , data ) return fl = fcntl . fcntl ( self . fd , fcntl . F_GETFL ) fcntl . fcntl ( self . fd , fcntl . F_SETFL , fl & ~ os . O_NONBLOCK ) if sys . version_info [ 0 ] > 2 : os . write ( self . fd , bytes ( data , encoding = 'UTF-8' ) ) else : os . write ( self . fd , data )
Blocking read on file descriptor.
Blocking read on file descriptor .
"""
        Blocking read on file descriptor.

        @param data: ASCII data to write
        @type data: C{string}
        """ # need blocking IO for writing
self
data
ASCII data to write
ASCII data to write