mirror of https://github.com/docker/docker-py.git
Fix a few pep8 issues
autopep8 --in-place --recursive --experimental -aaa --ignore E309 . Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
e676840945
commit
6220636536
|
|
@ -24,6 +24,7 @@ if sys.version_info[0] < 3 or sys.version_info[1] < 5:
|
|||
|
||||
class SSLAdapter(HTTPAdapter):
|
||||
'''An HTTPS Transport Adapter that uses an arbitrary SSL version.'''
|
||||
|
||||
def __init__(self, ssl_version=None, assert_hostname=None,
|
||||
assert_fingerprint=None, **kwargs):
|
||||
self.ssl_version = ssl_version
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class NpipeSocket(object):
|
|||
and server-specific methods (bind, listen, accept...) are not
|
||||
implemented.
|
||||
"""
|
||||
|
||||
def __init__(self, handle=None):
|
||||
self._timeout = win32pipe.NMPWAIT_USE_DEFAULT_WAIT
|
||||
self._handle = handle
|
||||
|
|
|
|||
|
|
@ -8,8 +8,11 @@ class SwarmSpec(dict):
|
|||
self['Orchestration'] = {
|
||||
'TaskHistoryRetentionLimit': task_history_retention_limit
|
||||
}
|
||||
if any([snapshot_interval, keep_old_snapshots,
|
||||
log_entries_for_slow_followers, heartbeat_tick, election_tick]):
|
||||
if any([snapshot_interval,
|
||||
keep_old_snapshots,
|
||||
log_entries_for_slow_followers,
|
||||
heartbeat_tick,
|
||||
election_tick]):
|
||||
self['Raft'] = {
|
||||
'SnapshotInterval': snapshot_interval,
|
||||
'KeepOldSnapshots': keep_old_snapshots,
|
||||
|
|
|
|||
Loading…
Reference in New Issue