Skip to content

Commit 7f19397

Browse files
authored
Merge pull request #289 from tirkarthi/fix-warnings
Fix deprecation warnings due to invalid escape sequences.
2 parents d407c9f + 1444248 commit 7f19397

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGES

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Here you can find the recent changes to libtmux
66

77
current
88
-------
9+
- :issue:`289`: Fix warning due to invalid escape sequences
910
- :issue:`295`: Publish docs via our own action
1011
- :issue:`295`: Move more packaging over to poetry, though we'll keep
1112
setup.py for the moment to ensure compatibility package maintainers.

libtmux/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def __init__(self, *args, **kwargs):
233233

234234
class TmuxMappingObject(MutableMapping):
235235

236-
"""Base: :py:class:`MutableMapping`.
236+
r"""Base: :py:class:`MutableMapping`.
237237
238238
Convenience container. Base class for :class:`Pane`, :class:`Window`,
239239
:class:`Session` and :class:`Server`.

libtmux/pane.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def clear(self):
153153
def reset(self):
154154
"""Reset and clear pane history. """
155155

156-
self.cmd('send-keys', '-R \; clear-history')
156+
self.cmd('send-keys', r'-R \; clear-history')
157157

158158
def split_window(self, attach=False, vertical=True, start_directory=None):
159159
"""

0 commit comments

Comments
 (0)