Fixed deprecation warning (#586)

This commit is contained in:
Joscha Götzer 2017-04-29 19:56:27 +02:00 committed by Jannes Höke
parent c5598b96bc
commit cdf36a20b7

View file

@ -81,8 +81,8 @@ class JobQueue(object):
``datetime.time`` will be interpreted as a specific time at which the job should
run. This could be either today or, if the time has already passed, tomorrow.
"""
warnings.warn("'JobQueue.put' is being deprecated, use 'JobQueue.one_time_job', "
"'JobQueue.repeating_job' or 'JobQueue.daily_job' instead")
warnings.warn("'JobQueue.put' is being deprecated, use 'JobQueue.run_once', "
"'JobQueue.run_daily' or 'JobQueue.run_repeating' instead")
if job.job_queue is None:
job.job_queue = self
self._put(job, next_t=next_t)