bugfix
This commit is contained in:
parent
10d6d919ce
commit
3b08e981ca
@ -5,7 +5,10 @@ import sys
|
|||||||
import codecs
|
import codecs
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
import json
|
import json
|
||||||
import uvloop
|
try:
|
||||||
|
import uvloop
|
||||||
|
except:
|
||||||
|
pass
|
||||||
import asyncio
|
import asyncio
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
|
|
||||||
@ -263,6 +266,7 @@ def background_reco(reco, *args, **kw):
|
|||||||
|
|
||||||
def get_loop_type():
|
def get_loop_type():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
if uvloop:
|
||||||
if isinstance(loop, uvloop.Loop):
|
if isinstance(loop, uvloop.Loop):
|
||||||
return 'uvloop.Loop'
|
return 'uvloop.Loop'
|
||||||
return str(type(loop))
|
return str(type(loop))
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
import uvloop
|
|
||||||
uvloop.install()
|
|
||||||
import os, sys
|
import os, sys
|
||||||
import argparse
|
try:
|
||||||
|
import uvloop
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
uvloop.install()
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
from appPublic.log import MyLogger, info, debug, warning
|
from appPublic.log import MyLogger, info, debug, warning
|
||||||
|
import argparse
|
||||||
from appPublic.folderUtils import ProgramPath
|
from appPublic.folderUtils import ProgramPath
|
||||||
from appPublic.jsonConfig import getConfig
|
from appPublic.jsonConfig import getConfig
|
||||||
from ahserver.configuredServer import ConfiguredServer
|
from ahserver.configuredServer import ConfiguredServer
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# setup.cfg
|
# setup.cfg
|
||||||
[metadata]
|
[metadata]
|
||||||
name = ahserver
|
name = ahserver
|
||||||
version = 1.1.4
|
version = 1.2.0
|
||||||
description = A application server base on aiohttp
|
description = A application server base on aiohttp
|
||||||
author = yu moqing
|
author = yu moqing
|
||||||
author_email = yumoqing@gmail.com
|
author_email = yumoqing@gmail.com
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user