�
JDvcG � �� � d Z ddlZddlZddlZej d dk rd� Zeej fZe fZ
dZdZdZ
nd� ZefZefZ
d ZdZdZ
eed
� � Ze
oeZd� Zd� Zd
� Zd� Zd� Zd� Zdd�ZdS )z�
Support functions for dealing with differences in platforms, including Python
versions and implementations.
This file should have no imports from the rest of zope.interface because it is
used during early bootstrapping.
� N� c �h � t | t � � rt | � � S t d� � �)Nz(name must be a regular or unicode string)�
isinstance�
basestring�unicode� TypeError��names �8/usr/lib/python3/dist-packages/zope/interface/_compat.py�_normalize_namer s/ � ��d�J�'�'� !��4�=�=� ��B�C�C�C� �__builtin__FTc � � t | t � � rt | d� � } t | t � � r| S t d� � �)N�asciiz)name must be a string or ASCII-only bytes)r �bytes�strr r s r r r * sI � ��d�E�"�"� &��t�W�%�%�D��d�C� � � ��K��C�D�D�Dr
�builtins�pypy_version_infoc �p � dd l } |� t j d dk d� � | � � S )Nr r zOnly on Python 2��unittest�skipIf�sys�version_info��test_methodr s r �_skip_under_py3kr < |