p115client 0.0.5.11.2__py3-none-any.whl → 0.0.5.11.4__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.
- p115client/client.py +9 -4
- {p115client-0.0.5.11.2.dist-info → p115client-0.0.5.11.4.dist-info}/METADATA +2 -2
- {p115client-0.0.5.11.2.dist-info → p115client-0.0.5.11.4.dist-info}/RECORD +5 -5
- {p115client-0.0.5.11.2.dist-info → p115client-0.0.5.11.4.dist-info}/LICENSE +0 -0
- {p115client-0.0.5.11.2.dist-info → p115client-0.0.5.11.4.dist-info}/WHEEL +0 -0
p115client/client.py
CHANGED
@@ -1101,7 +1101,12 @@ def normalize_attr_simple[D: dict[str, Any]](
|
|
1101
1101
|
*,
|
1102
1102
|
dict_cls: None | type[D] = None,
|
1103
1103
|
) -> dict[str, Any] | D:
|
1104
|
-
return normalize_attr(
|
1104
|
+
return normalize_attr(
|
1105
|
+
info,
|
1106
|
+
simple=False,
|
1107
|
+
keep_raw=keep_raw,
|
1108
|
+
dict_cls=dict_cls,
|
1109
|
+
)
|
1105
1110
|
|
1106
1111
|
|
1107
1112
|
class IgnoreCaseDict[V](dict[str, V]):
|
@@ -6490,7 +6495,7 @@ class P115Client(P115OpenClient):
|
|
6490
6495
|
lock = self.request_lock
|
6491
6496
|
if is_open_api:
|
6492
6497
|
if "authorization" not in headers:
|
6493
|
-
yield lock.acquire
|
6498
|
+
yield lock.acquire()
|
6494
6499
|
try:
|
6495
6500
|
yield self.login_another_open(
|
6496
6501
|
async_=async_, # type: ignore
|
@@ -6529,7 +6534,7 @@ class P115Client(P115OpenClient):
|
|
6529
6534
|
cert_headers = yield fetch_cert_headers()
|
6530
6535
|
headers.update(cert_headers)
|
6531
6536
|
elif is_open_api:
|
6532
|
-
yield lock.acquire
|
6537
|
+
yield lock.acquire()
|
6533
6538
|
try:
|
6534
6539
|
if cert != self.access_token:
|
6535
6540
|
continue
|
@@ -6545,7 +6550,7 @@ class P115Client(P115OpenClient):
|
|
6545
6550
|
finally:
|
6546
6551
|
lock.release()
|
6547
6552
|
else:
|
6548
|
-
yield lock.acquire
|
6553
|
+
yield lock.acquire()
|
6549
6554
|
try:
|
6550
6555
|
cookies_new: str = self.cookies_str
|
6551
6556
|
if cookies_equal(cert, cookies_new):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p115client
|
3
|
-
Version: 0.0.5.11.
|
3
|
+
Version: 0.0.5.11.4
|
4
4
|
Summary: Python 115 webdisk client.
|
5
5
|
Home-page: https://github.com/ChenyangGao/p115client
|
6
6
|
License: MIT
|
@@ -33,7 +33,7 @@ Requires-Dist: posixpatht (>=0.0.3)
|
|
33
33
|
Requires-Dist: python-argtools (>=0.0.1)
|
34
34
|
Requires-Dist: python-asynctools (>=0.1.2)
|
35
35
|
Requires-Dist: python-concurrenttools (>=0.0.8.2)
|
36
|
-
Requires-Dist: python-cookietools (>=0.0.2.
|
36
|
+
Requires-Dist: python-cookietools (>=0.0.2.2)
|
37
37
|
Requires-Dist: python-dictattr (>=0.0.4)
|
38
38
|
Requires-Dist: python-encode_uri (>=0.0.1)
|
39
39
|
Requires-Dist: python-filewrap (>=0.2.8)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
2
2
|
p115client/__init__.py,sha256=1mx7njuAlqcuEWONTjSiiGnXyyNyqOcJyNX1FMHqQ-4,214
|
3
3
|
p115client/_upload.py,sha256=RTYpM_EDFuI3O7yf08f13NdeG0iD03o_V4H6Je6Nsr8,30754
|
4
|
-
p115client/client.py,sha256=
|
4
|
+
p115client/client.py,sha256=MoMylxmwDAWeJ-y06mCaKRVR0NjgUD24I_2_azJmH5k,770974
|
5
5
|
p115client/const.py,sha256=Ks8eYjHYApxlkelVCbSJlpmlCYtbk8fX80jETV72BTY,7754
|
6
6
|
p115client/exception.py,sha256=O4SlfjbtI9GPjzbzJrFaFUZENJFz2qA3VDEKZfdhHbc,3590
|
7
7
|
p115client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -20,7 +20,7 @@ p115client/tool/upload.py,sha256=i6laoeG7GdNO7hvCDVBy8Yv2Is800wL7O5na6a3v70g,159
|
|
20
20
|
p115client/tool/util.py,sha256=0o9TrXdoPcljgxDDRdxRon41bq1OjuUYCWsR0XLfmPo,3357
|
21
21
|
p115client/tool/xys.py,sha256=vU28Px2yeQzIxxGkopJIpvV6TdOnWJ5xB6NPXpTgM0Y,10306
|
22
22
|
p115client/type.py,sha256=7kOp98uLaYqcTTCgCrb3DRcl8ukMpn7ibsnVvtw2nG8,6250
|
23
|
-
p115client-0.0.5.11.
|
24
|
-
p115client-0.0.5.11.
|
25
|
-
p115client-0.0.5.11.
|
26
|
-
p115client-0.0.5.11.
|
23
|
+
p115client-0.0.5.11.4.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
24
|
+
p115client-0.0.5.11.4.dist-info/METADATA,sha256=L7lHaryh0pFfKjuySaql1a6DZ2yvThXtJ2USa1UrghY,8240
|
25
|
+
p115client-0.0.5.11.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
26
|
+
p115client-0.0.5.11.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|