Skip to content

Commit 984ad07

Browse files
committed
refactor(unasync): move static class names to top of file
1 parent 5cfb920 commit 984ad07

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

ably/scripts/unasync.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
import tokenize_rt
66

7+
rename_classes = [
8+
"AblyRest",
9+
"Push",
10+
"PushAdmin",
11+
"Channel",
12+
"Channels",
13+
"Auth",
14+
"Http",
15+
"PaginatedResult",
16+
"HttpPaginatedResponse"
17+
]
18+
719
_TOKEN_REPLACE = {
820
"__aenter__": "__enter__",
921
"__aexit__": "__exit__",
@@ -230,18 +242,6 @@ def run():
230242

231243
_IMPORTS_REPLACE["ably"] = "ably.sync"
232244

233-
rename_classes = [
234-
"AblyRest",
235-
"Push",
236-
"PushAdmin",
237-
"Channel",
238-
"Channels",
239-
"Auth",
240-
"Http",
241-
"PaginatedResult",
242-
"HttpPaginatedResponse"
243-
]
244-
245245
# here...
246246
for class_name in rename_classes:
247247
_CLASS_RENAME[class_name] = f"{class_name}Sync"

0 commit comments

Comments
 (0)