[Python-modules-commits] [python-pyld] 190/276: Define basestring.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-pyld.

commit 97624381dda44d86db3a4899e0ab172ac8a6fda2
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Tue Sep 10 13:31:11 2013 -0400

    Define basestring.
---
 tests/runtests.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/runtests.py b/tests/runtests.py
index 75fd068..ccbae7b 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -20,6 +20,10 @@ from optparse import OptionParser
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib'))
 from pyld import jsonld
 
+# support python 2
+if sys.version_info.major >= 3:
+    basestring = str
+
 ROOT_MANIFEST_DIR = None
 SKIP_TESTS = []
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git



More information about the Python-modules-commits mailing list