Skip to content

Commit

Permalink
Make long line imports to multiline (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagracks authored and TomasTomecek committed Apr 20, 2017
1 parent c5ccc33 commit e02acbc
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
9 changes: 7 additions & 2 deletions sen/docker_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
from operator import attrgetter

from sen.constants import ISO_DATETIME_PARSE_STRING
from sen.exceptions import TerminateApplication, NotifyError, NotAvailableAnymore
from sen.exceptions import (
TerminateApplication, NotifyError, NotAvailableAnymore
)

import docker
import docker.errors

from sen.net import NetData
from sen.util import calculate_cpu_percent, calculate_blkio_bytes, calculate_network_bytes, repeater, \
from sen.util import (
calculate_cpu_percent, calculate_blkio_bytes,
calculate_network_bytes, repeater,
humanize_time
)

logger = logging.getLogger(__name__)

Expand Down
5 changes: 4 additions & 1 deletion sen/tui/commands/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

from sen.docker_backend import DockerImage, DockerContainer
from sen.exceptions import NotifyError
from sen.tui.buffer import TreeBuffer, HelpBuffer, ImageInfoBuffer, ContainerInfoBuffer, \
from sen.tui.buffer import (
TreeBuffer, HelpBuffer,
ImageInfoBuffer, ContainerInfoBuffer,
MainListBuffer
)
from sen.tui.commands.base import FrontendCommand, register_command


Expand Down
5 changes: 4 additions & 1 deletion sen/tui/commands/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

from sen.exceptions import NotifyError
from sen.tui.buffer import HelpBuffer, TreeBuffer
from sen.tui.commands.base import register_command, SameThreadCommand, Option, Argument, \
from sen.tui.commands.base import (
register_command, SameThreadCommand,
Option, Argument,
NoSuchCommand
)
from sen.util import log_traceback, log_last_traceback


Expand Down
6 changes: 4 additions & 2 deletions sen/tui/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import urwid

from sen.exceptions import NotifyError
from sen.tui.commands.base import FrontendPriority, BackendPriority, SameThreadPriority, \
KeyNotMapped
from sen.tui.commands.base import (
FrontendPriority, BackendPriority,
SameThreadPriority, KeyNotMapped
)
from sen.tui.constants import CLEAR_NOTIF_BAR_MESSAGE_IN
from sen.tui.widgets.util import ThreadSafeFrame
from sen.util import log_traceback, OrderedSet
Expand Down
5 changes: 4 additions & 1 deletion sen/tui/views/container_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
from sen.tui.widgets.list.base import WidgetBase
from sen.tui.widgets.list.util import RowWidget, UnselectableRowWidget
from sen.tui.widgets.table import assemble_rows
from sen.tui.widgets.util import SelectableText, get_map, ColorText, UnselectableListBox
from sen.tui.widgets.util import (
SelectableText, get_map,
ColorText, UnselectableListBox
)
from sen.util import log_traceback, humanize_bytes


Expand Down

0 comments on commit e02acbc

Please sign in to comment.