Skip to content

Commit

Permalink
docs(server.new_session): Fix doctest example
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Aug 17, 2022
1 parent e88ba11 commit 437f386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libtmux/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,17 @@ def new_session(
Examples
--------
Sessions can be created without a session name (0.14.2+):
>>> server.new_session()
Session($2 2)
Creating them in succession will enumerate IDs (via tmux):
>>> server.new_session()
Session($3 3)
With a `session_name`:
>>> server.new_session(session_name='my session')
Session($4 my session)
"""
Expand Down

0 comments on commit 437f386

Please sign in to comment.