Skip to content

Commit

Permalink
Merge pull request ioncodes#17 from Andoryuuta/python2-fix
Browse files Browse the repository at this point in the history
Fix python2 support
  • Loading branch information
ioncodes authored May 18, 2021
2 parents 0261cf7 + 313c710 commit 68474f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ida/idacode_utils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from idacode_utils.socket_handler import SocketHandler

# Fix for https://github.com/tornadoweb/tornado/issues/2608
import asyncio
if sys.version_info >= (3, 4):
import asyncio

VERSION = "0.2.2"
initialized = False
Expand All @@ -22,7 +23,6 @@ def setup_patches():

def create_socket_handler():
if sys.version_info >= (3, 4):
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())
app = tornado.web.Application([
(r"/ws", SocketHandler),
Expand Down

0 comments on commit 68474f6

Please sign in to comment.