Skip to content

Commit

Permalink
Update interpreter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Jan 2, 2016
1 parent 960d867 commit 4aa5b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sismic/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def run_in_background(interpreter: Interpreter, delay: float=0.2, callback=None)
:param interpreter: an interpreter
:param delay: delay between each call to ``execute()``
:param callback: a function that takes the interpreter and the results of ``execute``.
:return: started thread
:return: started thread (instance of ``threading.Thread``)
"""
import time
import threading
Expand All @@ -576,4 +576,4 @@ def _task(interpreter, delay):
time.sleep(delay)
thread = threading.Thread(target=_task, args=(interpreter, delay))
thread.start()
return thread
return thread

0 comments on commit 4aa5b61

Please sign in to comment.