|
@@ -42,8 +42,8 @@
|
|
|
"source": [
|
|
|
"class KVStore(BTree):\n",
|
|
|
" \n",
|
|
|
- " def __init__(self, split_threshold=2):\n",
|
|
|
- " super().__init__(split_threshold)"
|
|
|
+ " def __init__(self):\n",
|
|
|
+ " super().__init__(split_threshold=2)"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -67,8 +67,8 @@
|
|
|
"source": [
|
|
|
"class KVStore(BTree):\n",
|
|
|
" \n",
|
|
|
- " def __init__(self, split_threshold=2):\n",
|
|
|
- " super().__init__(split_threshold)\n",
|
|
|
+ " def __init__(self):\n",
|
|
|
+ " super().__init__(split_threshold=2)\n",
|
|
|
" \n",
|
|
|
" def add(self, key, value):\n",
|
|
|
" node = self._find_node(self.root, key)\n",
|
|
@@ -142,8 +142,8 @@
|
|
|
"source": [
|
|
|
"class KVStore(BTree):\n",
|
|
|
" \n",
|
|
|
- " def __init__(self, split_threshold=2):\n",
|
|
|
- " super().__init__(split_threshold)\n",
|
|
|
+ " def __init__(self):\n",
|
|
|
+ " super().__init__(split_threshold=2)\n",
|
|
|
" \n",
|
|
|
" def add(self, key, value):\n",
|
|
|
" node = self._find_node(self.root, key)\n",
|
|
@@ -216,9 +216,9 @@
|
|
|
"source": [
|
|
|
"class KVStore(BTree):\n",
|
|
|
" \n",
|
|
|
- " def __init__(self, split_threshold=2):\n",
|
|
|
- " super().__init__(split_threshold)\n",
|
|
|
- " \n",
|
|
|
+ " def __init__(self):\n",
|
|
|
+ " super().__init__(split_threshold=2)\n",
|
|
|
+ "\n",
|
|
|
" def add(self, key, value):\n",
|
|
|
" node = self._find_node(self.root, key)\n",
|
|
|
" if node is None:\n",
|
|
@@ -281,8 +281,8 @@
|
|
|
"source": [
|
|
|
"class KVStore(BTree):\n",
|
|
|
" \n",
|
|
|
- " def __init__(self, split_threshold=2):\n",
|
|
|
- " super().__init__(split_threshold)\n",
|
|
|
+ " def __init__(self):\n",
|
|
|
+ " super().__init__(split_threshold=2)\n",
|
|
|
" \n",
|
|
|
" def add(self, key, value):\n",
|
|
|
" node = self._find_node(self.root, key)\n",
|