Skip to content

Commit

Permalink
Python 3: unichr -> six.unichr
Browse files Browse the repository at this point in the history
Change-Id: I5e55af647ffe41095fd86b3c3e47efa7558aa229
  • Loading branch information
si-23 committed Jan 8, 2020
1 parent a9722a8 commit 072b03d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Expand Up @@ -26,7 +26,7 @@ jobs=0
# TODO: Why do we need persistence?
persistent=yes
extension-pkg-whitelist=rrdtool,_ldap,netifaces,pymssql
bad-functions=basestring,unicode,file,cmp,apply,execfile,reduce,reload
bad-functions=unichr,basestring,unicode,file,cmp,apply,execfile,reduce,reload

[MESSAGES CONTROL]
disable=
Expand Down
3 changes: 2 additions & 1 deletion cmk/base/snmp.py
Expand Up @@ -27,6 +27,7 @@
import os
import subprocess
from typing import Tuple, Optional, Any, Dict, List # pylint: disable=unused-import
import six

import cmk.utils.debug
import cmk.utils.tty as tty
Expand Down Expand Up @@ -499,7 +500,7 @@ def hex_encode_value(v):


def _oid_to_bin(oid):
return u"".join([unichr(int(p)) for p in oid.strip(".").split(".")])
return u"".join([six.unichr(int(p)) for p in oid.strip(".").split(".")])


def _extract_end_oid(prefix, complete):
Expand Down

0 comments on commit 072b03d

Please sign in to comment.