We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11afa9 commit 3899ffdCopy full SHA for 3899ffd
README.md
@@ -135,15 +135,15 @@ with Creator("test.zim").config_indexing(True, "eng") as creator:
135
136
```py
137
lock = threading.Lock()
138
-creator = Creator("test.zim")
+with Creator("test.zim") as creator:
139
140
-# Thread #1
141
-with lock:
142
- creator.add_item(item1)
+ # Thread #1
+ with lock:
+ creator.add_item(item1)
143
144
-# Thread #2
145
146
- creator.add_item(item2)
+ # Thread #2
+ creator.add_item(item2)
147
```
148
149
## Building
0 commit comments