def __path2keys(self, path): # {{{3
    node_id, inode = 1, 1
    if path == '/':
      return node_id, inode
    start_time = time.time()
    node = self.cached_nodes
    parent_id = node_id
    for segment in self.__split_segments(path):
      if segment in node:
        node = node[segment]
        node[self.__NODE_KEY_LAST_USED] = start_time
        node_id, inode = node[self.__NODE_KEY_VALUE]
      else:
        query_start_time = time.time()
        query = 'SELECT t.id, t.inode FROM tree t, strings s WHERE t.parent_id = ? AND t.name = s.id AND s.value = ? LIMIT 1'
        result = self.conn.execute(query, (parent_id, sqlite3.Binary(segment))).fetchone()
        self.time_spent_querying_tree += time.time() - query_start_time
        if result == None:
          self.__cache_check_gc()
          self.time_spent_traversing_tree += start_time - time.time()
          raise OSError, (errno.ENOENT, os.strerror(errno.ENOENT), path)
        node_id, inode = result
        new_node = { self.__NODE_KEY_VALUE: (node_id, inode), self.__NODE_KEY_LAST_USED: start_time }
        node[segment] = new_node
        node = new_node
      parent_id = node_id
    self.__cache_check_gc()
    self.time_spent_traversing_tree += time.time() - start_time
    return node_id, inode
dataset/ETHPy150Open xolox/dedupfs/dedupfs.py/DedupFS.__path2keys/swapped operands of `-`