import sys
import ctypes as _ct

if sys.version_info < (3,):
    integer_types = (int, long,)
    range = xrange
else:
    integer_types = (int,)
    long = int
    # xrange = range

C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'

C_CHAR2WCHAR = lambda x: str(x.decode('ascii'))
C_CHAR2WCHAR.__doc__ = 'Convert bytes to str'

C_MKSTR = lambda x: _ct.create_string_buffer(C_WCHAR2CHAR(x))
C_MKSTR.__doc__ = 'alias to ctypes.create_string_buffer, make sure bytes are provided'

import sys
import ctypes as _ct

if sys.version_info < (3,):
    integer_types = (int, long,)
    range = xrange
else:
    integer_types = (int,)
    long = int
    range = range

C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'

C_CHAR2WCHAR = lambda x: str(x.decode('ascii'))
C_CHAR2WCHAR.__doc__ = 'Convert bytes to str'

C_MKSTR = lambda x: _ct.create_string_buffer(C_WCHAR2CHAR(x))
C_MKSTR.__doc__ = 'alias to ctypes.create_string_buffer, make sure bytes are provided'

Add missing rpnpy.range reference for Python 3.
Add missing rpnpy.range reference for Python 3.

Signed-off-by: Stephane_Chamberland <1054841519c328088796c1f3c72c14f95c4efe35@science.gc.ca>
(cherry picked from commit 23860277c006d9635dedcaaa5e065c7aad199d8c)
(cherry picked from commit b613c799afbf95e15f99cee50c2f76516a264f32)
