circe/core.py
def load(self) -> None:
        """ Loads Bookmarks and Preferences into object state. """
        bookmarks = self.path.joinpath("Bookmarks")
        if not bookmarks.exists() or os.stat(bookmarks).st_size == 0:
            self.bookmarks = helpers.SKELETON
        else:
            with open(bookmarks, "r", encoding="utf-8") as b:
                self.bookmarks = json.load(b)

        with open(self.path.joinpath("Preferences"), "r", encoding="utf-8") as p:
            self.preferences = json.load(p)

        # Update the current CID to avoid name collisions with any data that is still present in Bookmarks
        max_cid = -1
        for folder in self.bookmarks['roots']['bookmark_bar']['children']:
            if "cid" in folder:
                identifier = int(folder["cid"].split("/", maxsplit=1)[0])
                if identifier > max_cid:
                    max_cid = identifier
        self._cid = max_cid + 1
 Loads Bookmarks and Preferences into object state. 
Loads Bookmarks and Preferences into object state.
Loads Bookmarks and Preferences into object state .
def load(self) -> None:
        bookmarks = self.path.joinpath("Bookmarks")
        if not bookmarks.exists() or os.stat(bookmarks).st_size == 0:
            self.bookmarks = helpers.SKELETON
        else:
            with open(bookmarks, "r", encoding="utf-8") as b:
                self.bookmarks = json.load(b)
        with open(self.path.joinpath("Preferences"), "r", encoding="utf-8") as p:
            self.preferences = json.load(p)
        max_cid = -1
        for folder in self.bookmarks['roots']['bookmark_bar']['children']:
            if "cid" in folder:
                identifier = int(folder["cid"].split("/", maxsplit=1)[0])
                if identifier > max_cid:
                    max_cid = identifier
        self._cid = max_cid + 1
def load ( self ) -> None : bookmarks = self . path . joinpath ( "Bookmarks" ) if not bookmarks . exists ( ) or os . stat ( bookmarks ) . st_size == 0 : self . bookmarks = helpers . SKELETON else : with open ( bookmarks , "r" , encoding = "utf-8" ) as b : self . bookmarks = json . load ( b ) with open ( self . path . joinpath ( "Preferences" ) , "r" , encoding = "utf-8" ) as p : self . preferences = json . load ( p ) max_cid = - 1 for folder in self . bookmarks [ 'roots' ] [ 'bookmark_bar' ] [ 'children' ] : if "cid" in folder : identifier = int ( folder [ "cid" ] . split ( "/" , maxsplit = 1 ) [ 0 ] ) if identifier > max_cid : max_cid = identifier self . _cid = max_cid + 1
Loads Bookmarks and Preferences into object state.
Loads Bookmarks and Preferences into object state .
""" Loads Bookmarks and Preferences into object state. """ # Update the current CID to avoid name collisions with any data that is still present in Bookmarks

self