From owner-svn-src-all@FreeBSD.ORG Tue Jan 22 18:02:48 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E4F02FC3; Tue, 22 Jan 2013 18:02:48 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CC22C9BC; Tue, 22 Jan 2013 18:02:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0MI2mDD058150; Tue, 22 Jan 2013 18:02:48 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0MI2msb058149; Tue, 22 Jan 2013 18:02:48 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201301221802.r0MI2msb058149@svn.freebsd.org> From: Ed Maste Date: Tue, 22 Jan 2013 18:02:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245804 - head/tools/tools/notescheck X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 18:02:49 -0000 Author: emaste Date: Tue Jan 22 18:02:48 2013 New Revision: 245804 URL: http://svnweb.freebsd.org/changeset/base/245804 Log: 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. Modified: head/tools/tools/notescheck/notescheck.py Modified: head/tools/tools/notescheck/notescheck.py ============================================================================== --- head/tools/tools/notescheck/notescheck.py Tue Jan 22 17:49:51 2013 (r245803) +++ head/tools/tools/notescheck/notescheck.py Tue Jan 22 18:02:48 2013 (r245804) @@ -7,6 +7,8 @@ # # $FreeBSD$ +from __future__ import print_function + import glob import os.path import sys