File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,35 +293,4 @@ async def on_ready():
293293 logger .info (f'Logged in as { bot .user } (ID: { bot .user .id } )' )
294294 logger .info ('------' )
295295
296- #bot.run(bot_token)
297-
298- async def test ():
299- asyncio .create_task (mappings_manager_instance .update_mappings ())
300- await asyncio .sleep (2 )
301-
302- with open ("Z:/shared.css" , "r" ) as fp :
303- css = fp .read ()
304-
305- split_css = re .split (r"(\.[_a-zA-Z]+[_a-zA-Z0-9-]*)" , css )
306-
307- for x in range (len (split_css )):
308- if split_css [x ].startswith ("." ) and split_css [x ][1 :] in mappings_manager_instance .index_css_class :
309- split_css [x ] = "." + mappings_manager_instance .get_universal_key_for_css_class (split_css [x ][1 :])
310- print (f"Found: { split_css [x ]} " )
311- else :
312- print (f"Not found: { split_css [x ][1 :]} { split_css [x ][1 :] in mappings_manager_instance .index_css_class } " )
313-
314- css = ("" .join (split_css )).replace ("\\ " , "\\ \\ " ).replace ("`" , "\\ `" )
315-
316- split_css = re .split (r"(\[class[*^|~]=\"[_a-zA-Z0-9-]*\"\])" , css )
317-
318- for x in range (len (split_css )):
319- if split_css [x ].startswith ("[class" ) and split_css [x ].endswith ("\" ]" ) and split_css [x ][9 :- 2 ] in mappings_manager_instance .index_css_class :
320- split_css [x ] = split_css [x ][0 :9 ] + mappings_manager_instance .get_universal_key_for_css_class (split_css [x ][9 :- 2 ]) + split_css [x ][- 2 :]
321-
322- css = ("" .join (split_css )).replace ("\\ " , "\\ \\ " ).replace ("`" , "\\ `" )
323-
324- print (css )
325-
326-
327- asyncio .run (test ())
296+ bot .run (bot_token )
You can’t perform that action at this time.
0 commit comments