Skip to content

Commit e918a76

Browse files
committed
updates to libtmux docs/imports/exceptions
1 parent 980b076 commit e918a76

File tree

7 files changed

+28
-16
lines changed

7 files changed

+28
-16
lines changed

libtmux/common.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# -*- coding: utf-8 -*-
2+
"""Helper methods and mixins.
23
4+
libtmux.common
5+
~~~~~~~~~~~~~~
6+
7+
"""
38
import collections
49
import logging
510
import os
@@ -362,7 +367,7 @@ def has_required_tmux_version(version=None):
362367
:versionchanged: 0.1.7
363368
Versions will now remove trailing letters per `Issue 55`_.
364369
365-
.. _Issue 55: https://github.com/tony/tmuxp/issues/55.
370+
.. _Issue 55: https://github.com/tony/libtmux/issues/55.
366371
367372
"""
368373

@@ -372,7 +377,7 @@ def has_required_tmux_version(version=None):
372377
if proc.stderr:
373378
if proc.stderr[0] == 'tmux: unknown option -- V':
374379
raise exc.LibTmuxException(
375-
'tmuxp supports tmux 1.8 and greater. This system'
380+
'libtmux supports tmux 1.8 and greater. This system'
376381
' is running tmux 1.3 or earlier.')
377382
raise exc.LibTmuxException(proc.stderr)
378383

@@ -382,7 +387,7 @@ def has_required_tmux_version(version=None):
382387

383388
if StrictVersion(version) <= StrictVersion("1.7"):
384389
raise exc.LibTmuxException(
385-
'tmuxp only supports tmux 1.8 and greater. This system'
386-
' has %s installed. Upgrade your tmux to use tmuxp.' % version
390+
'libtmux only supports tmux 1.8 and greater. This system'
391+
' has %s installed. Upgrade your tmux to use libtmux.' % version
387392
)
388393
return version

libtmux/exc.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
# -*- coding: utf-8 -*-
2+
"""libtmux exceptions.
3+
4+
libtmux.exc
5+
~~~~~~~~~~~
6+
7+
"""
18
from __future__ import (absolute_import, division, print_function,
29
unicode_literals, with_statement)
310

411

512
class LibTmuxException(Exception):
613

7-
"""Base Exception for Tmuxp Errors."""
14+
"""Base Exception for libtmux Errors."""
815

916

1017
class TmuxSessionExists(LibTmuxException):

libtmux/formats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Format variables for tmux objects.
33
4-
tmuxp.formats
5-
~~~~~~~~~~~~~
4+
libtmux.formats
5+
~~~~~~~~~~~~~~~
66
77
For reference: http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/format.c
88

libtmux/pane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Pythonization of the :ref:`tmux(1)` pane.
33
4-
tmuxp.pane
5-
~~~~~~~~~~
4+
libtmux.pane
5+
~~~~~~~~~~~~
66
77
"""
88
from __future__ import (absolute_import, division, print_function,

libtmux/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Pythonization of the :term:`tmux(1)` server.
33
4-
tmuxp.server
5-
~~~~~~~~~~~~
4+
libtmux.server
5+
~~~~~~~~~~~~~~
66
77
"""
88
from __future__ import (absolute_import, division, print_function,

libtmux/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Pythonization of the :term:`tmux(1)` session.
33
4-
tmuxp.session
5-
~~~~~~~~~~~~~
4+
libtmux.session
5+
~~~~~~~~~~~~~~~
66
77
"""
88
from __future__ import (absolute_import, division, print_function,

libtmux/window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Pythonization of the :term:`tmux(1)` window.
33
4-
tmuxp.window
5-
~~~~~~~~~~~~
4+
libtmux.window
5+
~~~~~~~~~~~~~~
66
77
"""
88
from __future__ import (absolute_import, division, print_function,
@@ -12,8 +12,8 @@
1212
import os
1313

1414
from . import exc, formats
15-
from .pane import Pane
1615
from .common import TmuxMappingObject, TmuxRelationalObject
16+
from .pane import Pane
1717

1818
logger = logging.getLogger(__name__)
1919

0 commit comments

Comments
 (0)