(self)
Reads stored tick or -1.
Reads stored tick or -1.
Reads stored tick or - 1 .
def load_local_tick(self):
        """Reads stored tick or -1."""
        try:
            f = open(self.local_tracking_file, 'r')
            buf = f.read()
            f.close()
            data = buf.strip()
            if data:
                tick_id = int(data)
            else:
                tick_id = -1
            return tick_id
        except IOError, ex:
            if ex.errno == errno.ENOENT:
                return -1
            raise
def load_local_tick ( self ) : try : f = open ( self . local_tracking_file , 'r' ) buf = f . read ( ) f . close ( ) data = buf . strip ( ) if data : tick_id = int ( data ) else : tick_id = - 1 return tick_id except IOError , ex : if ex . errno == errno . ENOENT : return - 1 raise