From owner-svn-src-all@freebsd.org Thu Oct 8 03:28:17 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0334B9D1FF3; Thu, 8 Oct 2015 03:28:17 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5E6380C; Thu, 8 Oct 2015 03:28:16 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t983SF2j079597; Thu, 8 Oct 2015 03:28:15 GMT (envelope-from rodrigc@FreeBSD.org) Received: (from rodrigc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t983SFZ0079596; Thu, 8 Oct 2015 03:28:15 GMT (envelope-from rodrigc@FreeBSD.org) Message-Id: <201510080328.t983SFZ0079596@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigc set sender to rodrigc@FreeBSD.org using -f From: Craig Rodrigues Date: Thu, 8 Oct 2015 03:28:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289002 - head/release/scripts 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.20 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: Thu, 08 Oct 2015 03:28:17 -0000 Author: rodrigc Date: Thu Oct 8 03:28:15 2015 New Revision: 289002 URL: https://svnweb.freebsd.org/changeset/base/289002 Log: Use print as a function, not operator. Modified: head/release/scripts/list-new-changesets.py Modified: head/release/scripts/list-new-changesets.py ============================================================================== --- head/release/scripts/list-new-changesets.py Thu Oct 8 02:28:22 2015 (r289001) +++ head/release/scripts/list-new-changesets.py Thu Oct 8 03:28:15 2015 (r289002) @@ -44,6 +44,7 @@ # list-new-changesets.py -r254153:261794 \ # svn://svn.freebsd.org/base/stable/9 +from __future__ import print_function import os import subprocess import sys @@ -60,15 +61,15 @@ def print_logentry(logentry): date = logentry.find('date').text msg = logentry.find('msg').text - print "-" * 71 - print "%s | %s | %s" % (rev, author, date) - print "Changed paths:" + print("-" * 71) + print("%s | %s | %s" % (rev, author, date)) + print("Changed paths:") for paths in logentry.findall('paths'): for path in paths.findall('path'): - print " %s %s" % (path.attrib['action'], path.text) + print(" %s %s" % (path.attrib['action'], path.text)) - print - print msg.encode('utf-8') + print() + print(msg.encode('utf-8')) def main(args): """Main function. @@ -80,13 +81,13 @@ def main(args): cmd = ["svn", "log", "-v", "--xml"] cmd += args[1:] - print " ".join(cmd) + print(" ".join(cmd)) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (out, err) = proc.communicate() if proc.returncode != 0: - print err + print(err) sys.exit(proc.returncode) displayed_entries = 0 @@ -107,10 +108,10 @@ def main(args): displayed_entries += 1 if displayed_entries == 0: - print "No changesets with Added or Deleted files" + print("No changesets with Added or Deleted files") if displayed_entries > 0: - print "-" * 71 + print("-" * 71) if __name__ == "__main__":