Skip to content

Commit

Permalink
Merge pull request #289 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix deprecation warnings due to invalid escape sequences.
  • Loading branch information
tony committed Oct 24, 2020
2 parents d407c9f + 1444248 commit 7f19397
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
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
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
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

0 comments on commit 7f19397

Please sign in to comment.