]> granicus.if.org Git - zziplib/commit
test: basestring compatibility with Python 3
authorPatrick Steinhardt <ps@pks.im>
Wed, 22 May 2019 19:22:01 +0000 (21:22 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 06:35:33 +0000 (08:35 +0200)
commit51bbebd178387033440eb24119c5e644d3cd36f6
tree445a4126406ad91e68852b37d978e791ddd3bcd3
parentd77ed5f4bc7c837aaffc633821e3d13852fceafa
test: basestring compatibility with Python 3

In Python 2, strings were represented by the class basestring, which has
been removed in Python 3 in favor of the str class. To keep
compatibility with both versions of Python, let's alias basestring to
str if basestring is not available.
docs/zzipdoc/match.py
test/zziptests.py