feat: make Python scripts compatible with both Python 2 and 3

Update print statements to function syntax, add from __future__ import print_function in test.py, change shebangs to /usr/bin/env python, replace str.translate with re.sub for anchor sanitization in generate_docs.py, and decode subprocess output to utf-8 in test.py for cross-version string handling.
This commit is contained in:
Kyle Marek-Spartz
2015-01-06 02:09:23 +00:00
parent a3e6d028c4
commit 864a70abdf
5 changed files with 40 additions and 33 deletions
+2 -1
View File
@@ -2,4 +2,5 @@ This is the (likely imcomplete) list of people who have made Wren what it is.
If you submit a patch to Wren, please add your name and email address to the
end of this list.
Robert Nystrom <robert@stuffwithstuff.com>
Robert Nystrom <robert@stuffwithstuff.com>
Kyle Marek-Spartz <kyle.marek.spartz@gmail.com>