json_write 0.0.1__tar.gz → 0.0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: json_write
3
- Version: 0.0.1
3
+ Version: 0.0.1.2
4
4
  Summary: JSON write tools.
5
5
  Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/json_write
6
6
  License: MIT
@@ -279,7 +279,7 @@ def json_ensure_gen_write(
279
279
  tpl = b",%s]"
280
280
  else:
281
281
  tpl = b"[%s]"
282
- not_first = False
282
+ not_first = True
283
283
  write(tpl % dumps(val))
284
284
  else:
285
285
  while True:
@@ -291,7 +291,7 @@ def json_ensure_gen_write(
291
291
  tpl = b",%s:%s}"
292
292
  else:
293
293
  tpl = b"{%s:%s}"
294
- not_first = False
294
+ not_first = True
295
295
  write(tpl % (dumps(str(key(val))), dumps(val)))
296
296
 
297
297
 
File without changes
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "json_write"
3
- version = "0.0.1"
3
+ version = "0.0.1.2"
4
4
  description = "JSON write tools."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"
@@ -30,4 +30,4 @@ requires = ["poetry-core"]
30
30
  build-backend = "poetry.core.masonry.api"
31
31
 
32
32
  [[tool.poetry.packages]]
33
- include = "json_write.py"
33
+ include = "json_write"
File without changes
File without changes