mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-22 16:26:34 +08:00
Merge pull request #626 from L1ghtn1ng/uvloop-workaround-py3.9
temp fix for uvloop on py3.9
This commit is contained in:
commit
71fe36ff23
|
@ -19,8 +19,10 @@
|
||||||
multiprocessing.freeze_support()
|
multiprocessing.freeze_support()
|
||||||
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
||||||
else:
|
else:
|
||||||
import uvloop
|
if python_version()[0:3] < '3.9':
|
||||||
uvloop.install()
|
import uvloop
|
||||||
|
uvloop.install()
|
||||||
|
|
||||||
if "linux" in platform:
|
if "linux" in platform:
|
||||||
import aiomultiprocess
|
import aiomultiprocess
|
||||||
# As we are not using Windows we can change the spawn method to fork for greater performance
|
# As we are not using Windows we can change the spawn method to fork for greater performance
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
class Core:
|
class Core:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def version() -> str:
|
def version() -> str:
|
||||||
return '3.2.0'
|
return '3.2.1'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def api_keys() -> dict:
|
def api_keys() -> dict:
|
||||||
|
|
Loading…
Reference in a new issue