Skip to content

Commit

Permalink
Fix deprecation warnings due to invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Jan 5, 2021
1 parent c96d28d commit 4f94043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flask_executor/executor.py
Expand Up @@ -111,7 +111,7 @@ def _prepare_fn(self, fn, force_copy=False):
return fn

def submit(self, fn, *args, **kwargs):
"""Schedules the callable, fn, to be executed as fn(\*args \**kwargs)
r"""Schedules the callable, fn, to be executed as fn(\*args \**kwargs)
and returns a :class:`~flask_executor.futures.FutureProxy` object, a
:class:`~concurrent.futures.Future` subclass representing
the execution of the callable.
Expand Down Expand Up @@ -150,7 +150,7 @@ def submit(self, fn, *args, **kwargs):
return FutureProxy(future, self)

def submit_stored(self, future_key, fn, *args, **kwargs):
"""Submits the callable using :meth:`Executor.submit` and stores the
r"""Submits the callable using :meth:`Executor.submit` and stores the
Future in the executor via a
:class:`~flask_executor.futures.FutureCollection` object available at
:data:`Executor.futures`. These futures can be retrieved anywhere
Expand Down Expand Up @@ -193,7 +193,7 @@ def get_result():
return future

def map(self, fn, *iterables, **kwargs):
"""Submits the callable, fn, and an iterable of arguments to the
r"""Submits the callable, fn, and an iterable of arguments to the
executor and returns the results inside a generator.
See also :meth:`concurrent.futures.Executor.map`.
Expand Down

0 comments on commit 4f94043

Please sign in to comment.