Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
9141e949
Kaydet (Commit)
9141e949
authored
Eyl 14, 2016
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Eyl 14, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1215 from bfirsh/autopep8
Fix a few pep8 issues
üst
48b7835a
62206365
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
14 deletions
+17
-14
__init__.py
docker/__init__.py
+1
-1
__init__.py
docker/auth/__init__.py
+1
-2
__init__.py
docker/ssladapter/__init__.py
+1
-1
ssladapter.py
docker/ssladapter/ssladapter.py
+1
-0
tls.py
docker/tls.py
+1
-1
__init__.py
docker/transport/__init__.py
+1
-2
npipesocket.py
docker/transport/npipesocket.py
+1
-0
swarm.py
docker/types/swarm.py
+5
-2
__init__.py
docker/utils/ports/__init__.py
+1
-1
api_test.py
tests/unit/api_test.py
+1
-1
image_test.py
tests/unit/image_test.py
+3
-3
No files found.
docker/__init__.py
Dosyayı görüntüle @
9141e949
...
...
@@ -3,4 +3,4 @@ from .version import version, version_info
__version__
=
version
__title__
=
'docker-py'
from
.client
import
Client
,
AutoVersionClient
,
from_env
# flake8: noqa
from
.client
import
Client
,
AutoVersionClient
,
from_env
# flake8: noqa
docker/auth/__init__.py
Dosyayı görüntüle @
9141e949
...
...
@@ -5,4 +5,4 @@ from .auth import (
load_config
,
resolve_authconfig
,
resolve_repository_name
,
)
# flake8: noqa
\ No newline at end of file
)
# flake8: noqa
docker/ssladapter/__init__.py
Dosyayı görüntüle @
9141e949
from
.ssladapter
import
SSLAdapter
# flake8: noqa
from
.ssladapter
import
SSLAdapter
# flake8: noqa
docker/ssladapter/ssladapter.py
Dosyayı görüntüle @
9141e949
...
...
@@ -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
...
...
docker/tls.py
Dosyayı görüntüle @
9141e949
...
...
@@ -42,7 +42,7 @@ class TLSConfig(object):
)
if
not
(
tls_cert
and
tls_key
)
or
(
not
os
.
path
.
isfile
(
tls_cert
)
or
not
os
.
path
.
isfile
(
tls_key
)):
not
os
.
path
.
isfile
(
tls_key
)):
raise
errors
.
TLSParameterError
(
'Path to a certificate and key files must be provided'
' through the client_config param'
...
...
docker/transport/__init__.py
Dosyayı görüntüle @
9141e949
...
...
@@ -3,4 +3,4 @@ from .unixconn import UnixAdapter
try
:
from
.npipeconn
import
NpipeAdapter
except
ImportError
:
pass
\ No newline at end of file
pass
docker/transport/npipesocket.py
Dosyayı görüntüle @
9141e949
...
...
@@ -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
...
...
docker/types/swarm.py
Dosyayı görüntüle @
9141e949
...
...
@@ -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
,
...
...
docker/utils/ports/__init__.py
Dosyayı görüntüle @
9141e949
from
.ports
import
(
split_port
,
build_port_bindings
)
# flake8: noqa
)
# flake8: noqa
tests/unit/api_test.py
Dosyayı görüntüle @
9141e949
...
...
@@ -327,7 +327,7 @@ class DockerApiTest(DockerClientTest):
# mock a stream interface
raw_resp
=
urllib3
.
HTTPResponse
(
body
=
body
)
setattr
(
raw_resp
.
_fp
,
'chunked'
,
True
)
setattr
(
raw_resp
.
_fp
,
'chunk_left'
,
len
(
body
.
getvalue
())
-
1
)
setattr
(
raw_resp
.
_fp
,
'chunk_left'
,
len
(
body
.
getvalue
())
-
1
)
# pass `decode=False` to the helper
raw_resp
.
_fp
.
seek
(
0
)
...
...
tests/unit/image_test.py
Dosyayı görüntüle @
9141e949
...
...
@@ -271,9 +271,9 @@ class ImageTest(DockerClientTest):
}
encoded_auth
=
auth
.
encode_header
(
auth_config
)
self
.
client
.
push
(
fake_api
.
FAKE_IMAGE_NAME
,
tag
=
fake_api
.
FAKE_TAG_NAME
,
auth_config
=
auth_config
)
fake_api
.
FAKE_IMAGE_NAME
,
tag
=
fake_api
.
FAKE_TAG_NAME
,
auth_config
=
auth_config
)
fake_request
.
assert_called_with
(
'POST'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment