Skip to content
Permalink
Browse files

Python 3: unichr -> six.unichr

Change-Id: I5e55af647ffe41095fd86b3c3e47efa7558aa229
  • Loading branch information
si-23 committed Jan 7, 2020
1 parent a9722a8 commit 072b03d1acfe82d7ec841c66fcdf8e0c4c4cb6db
Showing with 3 additions and 2 deletions.
  1. +1 −1 .pylintrc
  2. +2 −1 cmk/base/snmp.py
@@ -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=
@@ -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
@@ -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):

0 comments on commit 072b03d

Please sign in to comment.
You can’t perform that action at this time.