Skip to content

Commit dbd5232

Browse files
committed
Fix deprecation warnings due to invalid escape sequences.
1 parent 16d51b3 commit dbd5232

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)