diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-05-31 17:30:17 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-05-31 17:31:22 -0700 |
commit | 9d5760cf45619ce5aacb567fdc42849d678d93eb (patch) | |
tree | 8942388ed983db8e6381117cc6e7c2c469466f6a /paramiko/channel.py | |
parent | e2497717d25280ab49d0ce6ce54b52cf47451923 (diff) | |
download | paramiko-9d5760cf45619ce5aacb567fdc42849d678d93eb.tar.gz |
Additional house style formatting tweaks, mostly re: removal of line continuations
Diffstat (limited to 'paramiko/channel.py')
-rw-r--r-- | paramiko/channel.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py index ed03a813..1bd7969d 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -28,10 +28,11 @@ import threading from functools import wraps from paramiko import util -from paramiko.common import cMSG_CHANNEL_REQUEST, cMSG_CHANNEL_WINDOW_ADJUST, \ - cMSG_CHANNEL_DATA, cMSG_CHANNEL_EXTENDED_DATA, DEBUG, ERROR, \ - cMSG_CHANNEL_SUCCESS, cMSG_CHANNEL_FAILURE, cMSG_CHANNEL_EOF, \ - cMSG_CHANNEL_CLOSE +from paramiko.common import ( + cMSG_CHANNEL_REQUEST, cMSG_CHANNEL_WINDOW_ADJUST, cMSG_CHANNEL_DATA, + cMSG_CHANNEL_EXTENDED_DATA, DEBUG, ERROR, cMSG_CHANNEL_SUCCESS, + cMSG_CHANNEL_FAILURE, cMSG_CHANNEL_EOF, cMSG_CHANNEL_CLOSE, +) from paramiko.message import Message from paramiko.py3compat import bytes_types from paramiko.ssh_exception import SSHException @@ -50,8 +51,12 @@ def open_only(func): """ @wraps(func) def _check(self, *args, **kwds): - if self.closed or self.eof_received or self.eof_sent or \ - not self.active: + if ( + self.closed or + self.eof_received or + self.eof_sent or + not self.active + ): raise SSHException('Channel is not open') return func(self, *args, **kwds) return _check |