Skip to content

Commit 2d9b463

Browse files
committed
Sort imports with isort
1 parent 0ab3695 commit 2d9b463

31 files changed

+106
-102
lines changed

bootstrap_env.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env python
22

3-
from __future__ import (
4-
absolute_import, division, print_function, with_statement, unicode_literals
5-
)
3+
from __future__ import (absolute_import, division, print_function,
4+
unicode_literals, with_statement)
65

76
import os
8-
import sys
9-
import subprocess
107
import platform
8+
import subprocess
9+
import sys
1110

1211

1312
def warning(*objs):

doc/_ext/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

doc/_ext/aafig.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@
1414

1515
import posixpath
1616
from os import path
17+
18+
from docutils import nodes
19+
from docutils.parsers.rst.directives import flag, images, nonnegative_int
20+
from sphinx.errors import SphinxError
21+
from sphinx.util import ensuredir, relative_uri
22+
from sphinx.util.compat import Directive
23+
1724
try:
1825
from hashlib import sha1 as sha
1926
except ImportError:
2027
from sha import sha
2128

22-
from docutils import nodes
23-
from docutils.parsers.rst.directives import images, nonnegative_int, flag
2429

25-
from sphinx.errors import SphinxError
26-
from sphinx.util import ensuredir, relative_uri
27-
from sphinx.util.compat import Directive
2830

2931
try:
3032
import aafigure

run-tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# -*- coding: utf-8 -*-
33

44
from tmuxp.testsuite import main
5+
56
main()

tmuxp/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
~~~~~
66
77
"""
8-
from __future__ import absolute_import, division, print_function, \
9-
with_statement, unicode_literals
8+
from __future__ import (absolute_import, division, print_function,
9+
unicode_literals, with_statement)
1010

1111
import os
1212
import sys

tmuxp/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
~~~~~~~~~
66
77
"""
8-
from __future__ import absolute_import, division, print_function, \
9-
with_statement, unicode_literals
8+
from __future__ import (absolute_import, division, print_function,
9+
unicode_literals, with_statement)
1010

1111
import argparse
1212
import logging
@@ -16,12 +16,11 @@
1616
import argcomplete
1717
import kaptan
1818

19-
from . import log, util, exc, WorkspaceBuilder, Server, config
19+
from . import Server, WorkspaceBuilder, config, exc, log, util
2020
from .__about__ import __version__
2121
from ._compat import input, string_types
2222
from .workspacebuilder import freeze
2323

24-
2524
logger = logging.getLogger(__name__)
2625

2726
config_dir = os.path.expanduser('~/.tmuxp/')
@@ -989,3 +988,4 @@ def main():
989988
command_kill_session(args)
990989
except KeyboardInterrupt:
991990
pass
991+

tmuxp/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EnvironmentMixin(object):
1010

1111
def __init__(self, add_option=None):
1212
self._add_option = add_option
13-
13+
1414
def set_environment(self, name, value):
1515
"""Set environment ``$ tmux set-environment <name> <value>``.
1616
@@ -26,7 +26,7 @@ def set_environment(self, name, value):
2626
args += [self._add_option]
2727

2828
args += [name, value]
29-
29+
3030
proc = self.cmd(*args)
3131

3232
if proc.stderr:
@@ -45,7 +45,7 @@ def unset_environment(self, name):
4545
if self._add_option:
4646
args += [self._add_option]
4747
args += ['-u', name]
48-
48+
4949
proc = self.cmd(*args)
5050

5151
if proc.stderr:
@@ -64,7 +64,7 @@ def remove_environment(self, name):
6464
if self._add_option:
6565
args += [self._add_option]
6666
args += ['-r', name]
67-
67+
6868
proc = self.cmd(*args)
6969

7070
if proc.stderr:

tmuxp/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
~~~~~~~~~~~~
66
77
"""
8-
from __future__ import absolute_import, division, print_function, \
9-
with_statement, unicode_literals
8+
from __future__ import (absolute_import, division, print_function,
9+
unicode_literals, with_statement)
1010

1111
import copy
1212
import logging

tmuxp/exc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
77
"""
88

9-
from __future__ import absolute_import, division, print_function, \
10-
with_statement, unicode_literals
9+
from __future__ import (absolute_import, division, print_function,
10+
unicode_literals, with_statement)
1111

1212
from ._compat import implements_to_string
1313

tmuxp/formats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
99
"""
1010

11-
from __future__ import absolute_import, division, print_function, \
12-
with_statement, unicode_literals
13-
11+
from __future__ import (absolute_import, division, print_function,
12+
unicode_literals, with_statement)
1413

1514
SESSION_FORMATS = [
1615
'session_name',
@@ -101,3 +100,4 @@
101100
'mouse_any_flag',
102101
'mouse_utf8_flag',
103102
]
103+

0 commit comments

Comments
 (0)