d4rktg 0.9.9__py3-none-any.whl → 1.0.1__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.
d4rk/Utils/_decorators.py
CHANGED
@@ -46,13 +46,14 @@ def new_task():
|
|
46
46
|
def retry():
|
47
47
|
def decorator(func):
|
48
48
|
@wraps(func)
|
49
|
-
async def wrapper(
|
49
|
+
async def wrapper(*args, **kwargs):
|
50
50
|
async def runner():
|
51
|
-
try:await func(
|
51
|
+
try:await func(*args, **kwargs)
|
52
52
|
except FloodWait as e:
|
53
53
|
await asyncio.sleep(e.value)
|
54
|
-
await func(
|
55
|
-
asyncio.create_task(runner())
|
54
|
+
await func(*args, **kwargs)
|
55
|
+
task = asyncio.create_task(runner())
|
56
|
+
return await task
|
56
57
|
return wrapper
|
57
58
|
return decorator
|
58
59
|
|
@@ -9,14 +9,14 @@ d4rk/Logs/__init__.py,sha256=mXWD5jXnyH3_AvS7K_ki3iw5BpoEAvrDFbmr-iEFNnY,22
|
|
9
9
|
d4rk/Logs/_logger.py,sha256=lqfVvCO0vZ_IaGOdIE4HA2KAUQZh7yW2iAHZcBz7F4o,4120
|
10
10
|
d4rk/Utils/__init__.py,sha256=YL8lDvupE1mX9DPeM2g9QNpfATph8j2SNCDUZCIeACg,362
|
11
11
|
d4rk/Utils/_buttons.py,sha256=gehLWh0NOQSkSNAIuUBEJ8jN2uzNDail2tJboV4656w,3311
|
12
|
-
d4rk/Utils/_decorators.py,sha256=
|
12
|
+
d4rk/Utils/_decorators.py,sha256=6FVD9KGyVTPyegY8e-MKyl8i-xx1K70BwBWYuxhS31c,3731
|
13
13
|
d4rk/Utils/_filters.py,sha256=r_Dait6tcAg4drqDgBsIYKg7BA4Pd8S1yEbdGHj3A0g,2781
|
14
14
|
d4rk/Utils/_fonts.py,sha256=4zpjAmhAhRGzkSaD1b80p_bpwF72mOe7ykcpJFc688w,3690
|
15
15
|
d4rk/Utils/_ip.py,sha256=KJJW2QSngshIVWCO5YPXF1wj4IPQzVN5oFofpfzlU5w,559
|
16
16
|
d4rk/Utils/_movie_parser.py,sha256=Pyd_eSyzp0bBMfil0YY0zypsDWBk7LoDQBfMOQJh16Y,6204
|
17
17
|
d4rk/Utils/_ractions.py,sha256=wOVPyoFnbDuMgoP6NF_gLO1DYcfhERC0trdAK1jWSE8,2170
|
18
18
|
d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
|
19
|
-
d4rktg-0.
|
20
|
-
d4rktg-0.
|
21
|
-
d4rktg-0.
|
22
|
-
d4rktg-0.
|
19
|
+
d4rktg-1.0.1.dist-info/METADATA,sha256=TC8W19jMYKvwA2cLbxZrkvB74TGVZHI9MERBkS4jqbc,652
|
20
|
+
d4rktg-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
21
|
+
d4rktg-1.0.1.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
|
22
|
+
d4rktg-1.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|