Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 934C018771 for ; Sat, 30 Apr 2016 12:49:57 +0000 (UTC) Received: (qmail 36827 invoked by uid 500); 30 Apr 2016 12:49:57 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 36769 invoked by uid 500); 30 Apr 2016 12:49:57 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 36759 invoked by uid 99); 30 Apr 2016 12:49:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2016 12:49:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9197C180290 for ; Sat, 30 Apr 2016 12:49:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 5E7rlpUHQ9Gr for ; Sat, 30 Apr 2016 12:49:54 +0000 (UTC) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.161.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 28E185F19A for ; Sat, 30 Apr 2016 12:49:54 +0000 (UTC) Received: by mail-yw0-f172.google.com with SMTP id j74so195491767ywg.1 for ; Sat, 30 Apr 2016 05:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pL4HmT3OFykCvgAvKSVtSjwO6vhzs0Fap1WP2bigSas=; b=UsBk+yeKxrmHxhvnIkgUF+42nZ8Dg9m+5ZU2HGfBPFjOsdDP0D3VsnHByA7VNV1VMt PVDT0QEuy8DC0wNKYnCCQEfPwVwzv7pT69rArf98f5jzfvoC0SCGjb5X6kFsTzoipDIh OsckXFC+W0hqS1t1FElqvod6ZL0+KI0oEh0MbqCaSULRJ6kHwRdBTbMn3v8qcgVAM1n8 lbJH6vgl68RY/zdAS9KyQ9I7xwKHthB70Jv7oYAgC/tVZMjrW0ET051zphQBJ9hLgZqf 1uh7GKAVDvu15r7XRAArKhgpK7eRNqPXTb0N1/C5eImAQbLtXcYqpFO80pfzv0pDk4Qt Ep2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=pL4HmT3OFykCvgAvKSVtSjwO6vhzs0Fap1WP2bigSas=; b=FtaKHe4d0tMI6c/qRKGYX6PBTkx5yFGtGbkW0meLpcGZ6TtRHmAtOjdfTC/8XpjbtJ mcXILVK26GUli6+khfAIxmf3A+DJg1B7j1vW5cKYXoKMOqSvmw2mHvY5LdJlqMws3N5A RcxvkSBhChp1YYuDlOp/bs+oljOfUJdQAtQlCgjaIcRIeG40vydk9QgczqA2sRoaUMz/ 2YEWjgIKPGiCs9FVMP40Q3r8ya0YAozgPqT0rObX/mmyytumW0dlse5X+pZW4nMxxY6p plWjyy1iNXf2D4hiduYUGjBkIiZIc9QLnVJOduGCV0XOuW/k9JezS0ShXCgzO6nGKLqO m3Fg== X-Gm-Message-State: AOPr4FWhKPTJmfOYfdXGKxzT4qH37M7EBqZrEP2pLO98zCDvbk7vBvJJrvXkIfrhRxfsnQ== X-Received: by 10.37.50.70 with SMTP id y67mr3231702yby.98.1462020587448; Sat, 30 Apr 2016 05:49:47 -0700 (PDT) Received: from freya.jamessan.com (pool-71-162-119-45.bstnma.fios.verizon.net. [71.162.119.45]) by smtp.gmail.com with ESMTPSA id i67sm10079503ywf.34.2016.04.30.05.49.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Apr 2016 05:49:46 -0700 (PDT) Sender: James McCoy Received: from jamessan by freya.jamessan.com with local (Exim 4.87) (envelope-from ) id 1awULC-0003Oa-6G for dev@subversion.apache.org; Sat, 30 Apr 2016 08:49:46 -0400 Date: Sat, 30 Apr 2016 08:49:46 -0400 From: James McCoy To: dev@subversion.apache.org Subject: Re: svn commit: r1741742 - in /subversion/trunk: contrib/client-side/svn-merge-vendor.py contrib/server-side/fsfsverify.py tools/server-side/svn-backup-dumps.py Message-ID: <20160430124945.GA19618@freya.jamessan.com> Mail-Followup-To: dev@subversion.apache.org References: <20160430104159.D5C2D3A00A5@svn01-us-west.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160430104159.D5C2D3A00A5@svn01-us-west.apache.org> User-Agent: Mutt/1.6.0 (2016-04-01) On Sat, Apr 30, 2016 at 10:41:59AM -0000, stefan2@apache.org wrote: > Work towards Python 3 compatibility. Since we already require Python 2.7+, > we can use the new syntax without further limiting our Python 2 support. > > Fix leftovers to complete the replacement of print statements with function > calls. You didn't actually change the code to use the print function. The syntax just happens to work on Python 2.x because the () group the expression (like parens in math) but it's still a single expression provide to the print keyword. If you actually want to use the print function then you need to add: [[[ from __future__ import print_function ]]] to the top of the Python files. That would also let you use print() for the writes to specific files. > Modified: subversion/trunk/contrib/server-side/fsfsverify.py > URL: http://svn.apache.org/viewvc/subversion/trunk/contrib/server-side/fsfsverify.py?rev=1741742&r1=1741741&r2=1741742&view=diff > ============================================================================== > --- subversion/trunk/contrib/server-side/fsfsverify.py (original) > +++ subversion/trunk/contrib/server-side/fsfsverify.py Sat Apr 30 10:41:59 2016 > @@ -1136,7 +1136,7 @@ if __name__ == '__main__': > (options, args) = parser.parse_args() > > if len(args) != 1: > - print >>sys.stderr, "Please specify exactly one rev file." > + sys.stderr.write("Please specify exactly one rev file.\n") For example, this would change to: [[[ from __future__ import print_function print('Please specify exactly one rev file.', file=sys.stderr) ]]] This also maintains the behavior of an automatic newline. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy