53f74f5 Revert "PYTHON: Define constants as bytes instead of strings"

Authored and Committed by lslebodn 2 years ago
    Revert "PYTHON: Define constants as bytes instead of strings"
    
    This reverts commit 9375eae59550437c85ada9212be430a4242b25a4.
    
    Patch introduced difference between python2 and python3.
    constant should be strings in both versions.
    
    sh$ python2
    Python 2.7.13 (default, Aug 16 2017, 12:56:26)
    [GCC 7.1.1 20170802 (Red Hat 7.1.1-7)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pysss_nss_idmap
    >>> type(pysss_nss_idmap.SID_KEY)
    <type 'str'="">
    
    sh$ python3
    Python 3.6.2 (default, Sep  1 2017, 12:03:48)
    [GCC 7.1.1 20170802 (Red Hat 7.1.1-7)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pysss_nss_idmap
    >>> type(pysss_nss_idmap.SID_KEY)
    <class 'bytes'="">
    
    Reviewed-by: Sumit Bose <sbose@redhat.com>
    
        
file modified
+0 -7