Skip to content

Commit 0f0f447

Browse files
authored
Merge branch 'master' into patch-1
2 parents 5ac76ae + ed2f758 commit 0f0f447

3 files changed

Lines changed: 21 additions & 23 deletions

File tree

etcd3/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,15 @@ def __init__(self, host='localhost', port=2379,
170170

171171
def close(self):
172172
"""Call the GRPC channel close semantics."""
173-
self.channel.close()
173+
if hasattr(self, 'channel'):
174+
self.channel.close()
174175

175176
def __enter__(self):
176177
return self
177178

178179
def __exit__(self, *args):
179180
self.close()
180181

181-
def __del__(self):
182-
self.close()
183-
184182
def _get_secure_creds(self, ca_cert, cert_key=None, cert_cert=None):
185183
cert_key_file = None
186184
cert_cert_file = None

requirements/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66
# pip-compile-multi
77
#
8-
grpcio==1.24.0
8+
grpcio==1.27.1
99
protobuf==3.6.1
1010
six==1.12.0 # via grpcio, protobuf, tenacity
11-
tenacity==5.0.2
11+
tenacity==6.1.0
1212

1313
# The following packages are considered to be unsafe in a requirements file:
1414
# setuptools==41.2.0 # via protobuf

requirements/test.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ alabaster==0.7.12 # via sphinx
1010
argparse==1.4.0 # via unittest2
1111
atomicwrites==1.3.0 # via pytest
1212
attrs==19.2.0 # via hypothesis, pytest
13-
babel==2.7.0 # via sphinx
13+
babel==2.8.0 # via sphinx
1414
bumpversion==0.5.3
1515
certifi==2019.9.11 # via requests
1616
cffi==1.12.3 # via xattr
1717
chardet==3.0.4 # via requests
1818
click==7.0 # via pifpaf
19-
coverage==4.5.4
20-
daiquiri==1.6.0 # via pifpaf
19+
coverage==5.0.1
20+
daiquiri==2.1.1 # via pifpaf
2121
docutils==0.15.2 # via sphinx
2222
entrypoints==0.3 # via flake8
2323
extras==1.0.0 # via testtools
@@ -27,48 +27,48 @@ flake8-docstrings==1.3.0
2727
flake8-import-order==0.18.1
2828
flake8-polyfill==1.0.2 # via flake8-docstrings
2929
flake8==3.7.8
30-
grpcio-tools==1.24.0
31-
hypothesis==4.56.1
30+
grpcio-tools==1.27.2
31+
hypothesis==4.56.3
3232
idna==2.8 # via requests
3333
imagesize==1.1.0 # via sphinx
34-
importlib-metadata==0.23 # via pluggy, pytest
35-
jinja2==2.10.1 # via pifpaf, sphinx
34+
importlib-metadata==1.5.0 # via pluggy, pytest
35+
jinja2==2.11.1 # via pifpaf, sphinx
3636
linecache2==1.0.0 # via traceback2
3737
markupsafe==1.1.1 # via jinja2
3838
mccabe==0.6.1 # via flake8
3939
mock==2.0.0
4040
more-itertools==5.0.0
41-
packaging==19.2 # via pytest, sphinx
41+
packaging==20.3 # via pytest, sphinx
4242
pbr==5.4.3 # via fixtures, mock, pifpaf, testtools
4343
pifpaf==2.2.2
4444
pluggy==0.13.0 # via pytest, tox
4545
psutil==5.6.3 # via pifpaf
4646
py==1.8.0 # via pytest, tox
4747
pycodestyle==2.5.0 # via flake8, flake8-import-order
48-
pycparser==2.19 # via cffi
48+
pycparser==2.20 # via cffi
4949
pydocstyle==3.0.0
5050
pyflakes==2.1.1 # via flake8
5151
pygments==2.4.2 # via sphinx
52-
pyparsing==2.4.2 # via packaging
52+
pyparsing==2.4.6 # via packaging
5353
pytest-cov==2.7.1
5454
pytest==4.6.5
5555
python-mimeparse==1.6.0 # via testtools
5656
pytz==2019.2 # via babel
57-
pyyaml==5.1
57+
pyyaml==5.3.1
5858
requests==2.22.0 # via sphinx
5959
snowballstemmer==2.0.0 # via pydocstyle, sphinx
6060
sphinx==1.8.2
6161
sphinxcontrib-websupport==1.1.2 # via sphinx
62-
testtools==2.3.0 # via fixtures
62+
testtools==2.4.0 # via fixtures
6363
toml==0.10.0 # via tox
64-
tox==3.5.3
64+
tox==3.14.5
6565
traceback2==1.4.0 # via testtools, unittest2
6666
unittest2==1.1.0 # via testtools
67-
urllib3==1.25.6 # via requests
68-
virtualenv==16.7.5 # via tox
69-
wcwidth==0.1.7 # via pytest
67+
urllib3==1.25.8 # via requests
68+
virtualenv==20.0.13 # via tox
69+
wcwidth==0.1.9 # via pytest
7070
xattr==0.9.6 # via pifpaf
71-
zipp==0.6.0 # via importlib-metadata
71+
zipp==1.0.0 # via importlib-metadata
7272

7373
# The following packages are considered to be unsafe in a requirements file:
7474
# setuptools==41.2.0 # via flake8-import-order, protobuf, sphinx, tox

0 commit comments

Comments
 (0)