Skip to content

Fix deprecation warnings due to invalid escape sequences. #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libtmux/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion libtmux/pane.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down