summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-01-22 18:02:48 +0000
committeremaste <emaste@FreeBSD.org>2013-01-22 18:02:48 +0000
commit344c251409940bcfe8a745fa0940ea54bae6ff68 (patch)
tree8a911d1878263b2f9254f1c3e8c03d31eda1ff7d /tools
parent75dc0fdd3895a77a7b2d8e209f8c69bad8af69aa (diff)
downloadFreeBSD-src-344c251409940bcfe8a745fa0940ea54bae6ff68.zip
FreeBSD-src-344c251409940bcfe8a745fa0940ea54bae6ff68.tar.gz
Restore Python 2.6+ compatibility
SVN r245536 ported this to Python 3. The major change was the use of the print function. Unfortunately this is incompatible with Python 2, which is still the default version in the ports tree. Use a __future__ import to make this compatible with Python 2.6 and later.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/notescheck/notescheck.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tools/notescheck/notescheck.py b/tools/tools/notescheck/notescheck.py
index 5588679..35915b9 100644
--- a/tools/tools/notescheck/notescheck.py
+++ b/tools/tools/notescheck/notescheck.py
@@ -7,6 +7,8 @@
#
# $FreeBSD$
+from __future__ import print_function
+
import glob
import os.path
import sys
OpenPOWER on IntegriCloud