######################## BEGIN LICENSE BLOCK ########################1# Contributor(s):2# Dan Blanchard3# Ian Cordasco4#5# This library is free software; you can redistribute it and/or6# modify it under the terms of the GNU Lesser General Public7# License as published by the Free Software Foundation; either8# version 2.1 of the License, or (at your option) any later version.9#10# This library is distributed in the hope that it will be useful,11# but WITHOUT ANY WARRANTY; without even the implied warranty of12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13# Lesser General Public License for more details.14#15# You should have received a copy of the GNU Lesser General Public16# License along with this library; if not, write to the Free Software17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA18# 02110-1301 USA19######################### END LICENSE BLOCK #########################2021import sys222324if sys.version_info < (3, 0):25PY2 = True26PY3 = False27base_str = (str, unicode)28text_type = unicode29else:30PY2 = False31PY3 = True32base_str = (bytes, str)33text_type = str343536