diff --git a/CHANGES b/CHANGES index 7d9c67b2a..7ab5186a6 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ Here you can find the recent changes to libtmux current ------- +- :issue:`289`: Fix warning due to invalid escape sequences - :issue:`295`: Publish docs via our own action - :issue:`295`: Move more packaging over to poetry, though we'll keep setup.py for the moment to ensure compatibility package maintainers. diff --git a/libtmux/common.py b/libtmux/common.py index 65f9edcfc..6337913b0 100644 --- a/libtmux/common.py +++ b/libtmux/common.py @@ -233,7 +233,7 @@ def __init__(self, *args, **kwargs): class TmuxMappingObject(MutableMapping): - """Base: :py:class:`MutableMapping`. + r"""Base: :py:class:`MutableMapping`. Convenience container. Base class for :class:`Pane`, :class:`Window`, :class:`Session` and :class:`Server`. diff --git a/libtmux/pane.py b/libtmux/pane.py index c42b2def4..5ea1f11f9 100644 --- a/libtmux/pane.py +++ b/libtmux/pane.py @@ -153,7 +153,7 @@ def clear(self): def reset(self): """Reset and clear pane history. """ - self.cmd('send-keys', '-R \; clear-history') + self.cmd('send-keys', r'-R \; clear-history') def split_window(self, attach=False, vertical=True, start_directory=None): """