From 0b65494e8f84eb49019fd7fdc2078f7a3503290d Mon Sep 17 00:00:00 2001 From: v-zhuravlev Date: Thu, 13 Dec 2018 22:20:44 +0300 Subject: [PATCH 1/4] typo in sender.py --- pyzabbix/sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzabbix/sender.py b/pyzabbix/sender.py index 6089c3d..c356c4a 100644 --- a/pyzabbix/sender.py +++ b/pyzabbix/sender.py @@ -407,7 +407,7 @@ def _chunk_send(self, metrics): raise socket.timeout except Exception as err: # In case of error we should close connection, otherwise - # we will close it afret data will be received. + # we will close it after data will be received. logger.warn('Sending failed: %s', getattr(err, 'msg', str(err))) connection.close() raise Exception(err) From c906cc2d8cf6758b64901553eb4d7b6dd9f0c5f5 Mon Sep 17 00:00:00 2001 From: v-zhuravlev Date: Sun, 17 Feb 2019 13:15:17 +0300 Subject: [PATCH 2/4] typo in api --- pyzabbix/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzabbix/api.py b/pyzabbix/api.py index 1273e6b..50329d7 100644 --- a/pyzabbix/api.py +++ b/pyzabbix/api.py @@ -95,7 +95,7 @@ def fn(*args, **kwargs): def ssl_context_compat(func): def inner(req): - # We shoul explicitly disable cert verification to support + # We should explicitly disable cert verification to support # self-signed certs with urllib2 since Python 2.7.9 and 3.4.3 default_version = (2, 7, 9) From 25cae408da7d9db83b2fbf0c3bdcff6cc1e439e7 Mon Sep 17 00:00:00 2001 From: v-zhuravlev Date: Sun, 17 Feb 2019 18:21:05 +0300 Subject: [PATCH 3/4] typo in logger --- pyzabbix/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzabbix/logger.py b/pyzabbix/logger.py index 11e3a01..15a1043 100644 --- a/pyzabbix/logger.py +++ b/pyzabbix/logger.py @@ -23,7 +23,7 @@ class NullHandler(logging.Handler): """Null logger handler. - :class:`NullHandler` will used if there are no other logger handlers. + :class:`NullHandler` will be used if there are no other logger handlers. """ def emit(self, record): From 6da517d5b4e76802033e993dd56fb1990ef9538c Mon Sep 17 00:00:00 2001 From: v-zhuravlev Date: Sun, 17 Feb 2019 21:32:28 +0300 Subject: [PATCH 4/4] typo in README: added missing ':' --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 54d2d7a..6012608 100644 --- a/README.rst +++ b/README.rst @@ -52,7 +52,7 @@ Or use 'with' statement to logout automatically: from pyzabbix.api import ZabbixAPI # Create ZabbixAPI class instance - with ZabbixAPI(url='https://localhost/zabbix/', user='admin', password='zabbix') as zapi + with ZabbixAPI(url='https://localhost/zabbix/', user='admin', password='zabbix') as zapi: # Get all monitored hosts result1 = zapi.host.get(monitored_hosts=1, output='extend')