Skip to content

Commit 141117e

Browse files
committed
fix: use get_event_loop() for Python 3.6
1 parent 2f368f0 commit 141117e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/padding_oracle/solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def create_solve_context(ciphertext, block_size, oracle, parallel,
155155
latest_plaintext = plaintext.copy()
156156

157157
executor = ThreadPoolExecutor(parallel)
158-
loop = asyncio.get_running_loop()
158+
loop = asyncio.get_event_loop()
159159
ctx = Context(block_size, oracle, executor, loop, tasks,
160160
latest_plaintext, plaintext,
161161
result_callback, plaintext_callback)

0 commit comments

Comments
 (0)