Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
DHParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
badw-it
DHParser
Commits
3de3ea94
Commit
3de3ea94
authored
May 12, 2019
by
eckhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- server.py: bugfix python3.5 compatibility
parent
667dd4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DHParser/server.py
DHParser/server.py
+2
-2
No files found.
DHParser/server.py
View file @
3de3ea94
...
@@ -151,7 +151,7 @@ def asyncio_run(coroutine: Coroutine, loop=None) -> Any:
...
@@ -151,7 +151,7 @@ def asyncio_run(coroutine: Coroutine, loop=None) -> Any:
result
=
myloop
.
run_until_complete
(
coroutine
)
result
=
myloop
.
run_until_complete
(
coroutine
)
if
loop
is
None
:
if
loop
is
None
:
asyncio
.
set_event_loop
(
None
)
asyncio
.
set_event_loop
(
None
)
myloop
.
run_until_complete
(
loop
.
shutdown_asyncgens
())
myloop
.
run_until_complete
(
my
loop
.
shutdown_asyncgens
())
myloop
.
close
()
myloop
.
close
()
return
result
return
result
...
@@ -416,7 +416,7 @@ class Server:
...
@@ -416,7 +416,7 @@ class Server:
finally
:
finally
:
if
loop
is
None
:
if
loop
is
None
:
asyncio
.
set_event_loop
(
None
)
asyncio
.
set_event_loop
(
None
)
self
.
loop
.
run_until_complete
(
loop
.
shutdown_asyncgens
())
self
.
loop
.
run_until_complete
(
self
.
loop
.
shutdown_asyncgens
())
self
.
loop
.
close
()
self
.
loop
.
close
()
self
.
server
.
close
()
self
.
server
.
close
()
asyncio_run
(
self
.
server
.
wait_closed
())
asyncio_run
(
self
.
server
.
wait_closed
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment