Skip to content

Commit

Permalink
Merge branch 'master' into case_sensitive_user
Browse files Browse the repository at this point in the history
  • Loading branch information
adubkov authored Feb 18, 2019
2 parents 4ad5557 + 5f3ea7f commit 3119560
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion pyzabbix/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyzabbix/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyzabbix/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3119560

Please sign in to comment.