mirror of
https://github.com/trevorhobenshield/twitter-api-client.git
synced 2025-12-25 02:03:15 -05:00
Update update.py
This commit is contained in:
committed by
GitHub
parent
11da3a4ca8
commit
f15d0e29c9
@@ -12,20 +12,16 @@ from httpx import AsyncClient, Client
|
||||
from twitter.constants import *
|
||||
|
||||
try:
|
||||
if get_ipython().__class__.__name__ == 'ZMQInteractiveShell':
|
||||
import nest_asyncio
|
||||
|
||||
nest_asyncio.apply()
|
||||
import nest_asyncio
|
||||
nest_asyncio.apply()
|
||||
except:
|
||||
...
|
||||
|
||||
if platform.system() != 'Windows':
|
||||
try:
|
||||
import uvloop
|
||||
|
||||
uvloop.install()
|
||||
except ImportError as e:
|
||||
...
|
||||
try:
|
||||
import uvloop
|
||||
uvloop.install()
|
||||
except:
|
||||
...
|
||||
|
||||
STRINGS = Path('strings.txt')
|
||||
PATHS = Path('paths.txt')
|
||||
|
||||
Reference in New Issue
Block a user