libentry 1.22.1__py3-none-any.whl → 1.22.2__py3-none-any.whl

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.
libentry/api.py CHANGED
@@ -427,8 +427,7 @@ class APIClient(BaseClient):
427
427
  verify: Optional[bool] = None,
428
428
  ):
429
429
  full_url = urljoin(self.base_url, path)
430
- if headers is None:
431
- headers = {}
430
+ headers = {**headers} if headers else {}
432
431
  accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
433
432
  headers["Accept"] = accept + f"; stream={int(stream)}"
434
433
  content_type = headers.get("Content-Type")
@@ -588,8 +587,7 @@ class APIClient(BaseClient):
588
587
  verify: Optional[bool] = None,
589
588
  ):
590
589
  full_url = urljoin(self.base_url, path)
591
- if headers is None:
592
- headers = {}
590
+ headers = {**headers} if headers else {}
593
591
  accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
594
592
  headers["Accept"] = accept + f"; stream={int(stream)}"
595
593
  content_type = headers.get("Content-Type")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libentry
3
- Version: 1.22.1
3
+ Version: 1.22.2
4
4
  Summary: Entries for experimental utilities.
5
5
  Home-page: https://github.com/XoriieInpottn/libentry
6
6
  Author: xi
@@ -1,5 +1,5 @@
1
1
  libentry/__init__.py,sha256=ko2YBIIx5H3dD0tedBkialzJGEDczFaP_PZmT1cIlak,148
2
- libentry/api.py,sha256=zyXgHqUEC9hSLOq4vADY-eq89NOYb3McGfTrl_p9JJ8,24124
2
+ libentry/api.py,sha256=GX1eandj45mBiQneFwn8rWtkwti8PHl5XFqyU2thNXg,24116
3
3
  libentry/argparse.py,sha256=NxzXV-jBN51ReZsNs5aeyOfzwYQ5A5nJ95rWoa-FYCs,10415
4
4
  libentry/dataclasses.py,sha256=AQV2PuxplJCwGZ5HKX72U-z-POUhTdy3XtpEK9KNIGQ,4541
5
5
  libentry/executor.py,sha256=cTV0WxJi0nU1TP-cOwmeodN8DD6L1691M2HIQsJtGrU,6582
@@ -16,10 +16,10 @@ libentry/service/list.py,sha256=ElHWhTgShGOhaxMUEwVbMXos0NQKjHsODboiQ-3AMwE,1397
16
16
  libentry/service/running.py,sha256=FrPJoJX6wYxcHIysoatAxhW3LajCCm0Gx6l7__6sULQ,5105
17
17
  libentry/service/start.py,sha256=mZT7b9rVULvzy9GTZwxWnciCHgv9dbGN2JbxM60OMn4,1270
18
18
  libentry/service/stop.py,sha256=wOpwZgrEJ7QirntfvibGq-XsTC6b3ELhzRW2zezh-0s,1187
19
- libentry-1.22.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
- libentry-1.22.1.dist-info/METADATA,sha256=ZmgA_DbNQgXnvCBGW2AdCS4CbgfJQr7geiqB_qUWoQY,813
21
- libentry-1.22.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
22
- libentry-1.22.1.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
23
- libentry-1.22.1.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
24
- libentry-1.22.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
25
- libentry-1.22.1.dist-info/RECORD,,
19
+ libentry-1.22.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
+ libentry-1.22.2.dist-info/METADATA,sha256=w3rW8gMieGJ5OqA-3Lqu8IJ3INeDIy5oCsfMnb4MJAk,813
21
+ libentry-1.22.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
22
+ libentry-1.22.2.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
23
+ libentry-1.22.2.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
24
+ libentry-1.22.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
25
+ libentry-1.22.2.dist-info/RECORD,,