diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 15:26:48 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-08 15:26:48 +0200 |
commit | f38bb06672414c20338ee4dabacb168d3b8720fd (patch) | |
tree | d36d3b6346d186ba15d433bd7459a862967ee61f | |
parent | ed0be7b57d6ee40416b3a4856285ec7273838ab4 (diff) | |
download | poezio-f38bb06672414c20338ee4dabacb168d3b8720fd.tar.gz poezio-f38bb06672414c20338ee4dabacb168d3b8720fd.tar.bz2 poezio-f38bb06672414c20338ee4dabacb168d3b8720fd.tar.xz poezio-f38bb06672414c20338ee4dabacb168d3b8720fd.zip |
timed_events, plugin: Remove some DeprecationWarning on invalid escapes in docstrings.
-rw-r--r-- | poezio/plugin.py | 4 | ||||
-rw-r--r-- | poezio/timed_events.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/poezio/plugin.py b/poezio/plugin.py index 78996788..9260aa21 100644 --- a/poezio/plugin.py +++ b/poezio/plugin.py @@ -165,7 +165,7 @@ class PluginAPI: :param datetime.datetime date: The time at which the handler must be executed :param function callback: The handler that will be executed - :param \*args: Optional arguments passed to the handler. + :param args: Optional arguments passed to the handler. :return: The created event. :rtype: :py:class:`timed_events.TimedEvent` """ @@ -181,7 +181,7 @@ class PluginAPI: :param int delay: The number of seconds to schedule the execution :param function callback: The handler that will be executed - :param \*args: Optional arguments passed to the handler. + :param args: Optional arguments passed to the handler. :return: The created event. :rtype: :py:class:`timed_events.DelayedEvent` """ diff --git a/poezio/timed_events.py b/poezio/timed_events.py index 3610a1ed..f5b87f3c 100644 --- a/poezio/timed_events.py +++ b/poezio/timed_events.py @@ -29,7 +29,7 @@ class DelayedEvent: :param int delay: The number of seconds. :param function callback: The handler that will be executed. - :param \*args: Optional arguments passed to the handler. + :param args: Optional arguments passed to the handler. """ self.callback = callback self.args = args @@ -51,7 +51,7 @@ class TimedEvent(DelayedEvent): :param datetime.datetime date: Time at which the callback must be run. :param function callback: The handler that will be executed. - :param \*args: Optional arguments passed to the handler. + :param args: Optional arguments passed to the handler. """ delta = date - datetime.now() delay = delta.total_seconds() |