From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 625A01384B4 for ; Sun, 20 Dec 2015 20:33:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE9A2E079B; Sun, 20 Dec 2015 20:33:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 817FAE079B for ; Sun, 20 Dec 2015 20:33:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04E7733D3C7 for ; Sun, 20 Dec 2015 20:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74CE4B41 for ; Sun, 20 Dec 2015 20:33:21 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1450642746.4e06e9f032ed187ce682434955778c3241854e26.floppym@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: / X-VCS-Repository: proj/gentoolkit X-VCS-Files: setup.py X-VCS-Directories: / X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 4e06e9f032ed187ce682434955778c3241854e26 X-VCS-Branch: master Date: Sun, 20 Dec 2015 20:33:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0fe4045e-4e71-4b08-a8d6-da9dbb08acf7 X-Archives-Hash: 114dae3a9f72e48457f53f76d9f64d15 commit: 4e06e9f032ed187ce682434955778c3241854e26 Author: Mike Gilbert gentoo org> AuthorDate: Sun Dec 20 20:19:06 2015 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Dec 20 20:19:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4e06e9f0 Remove useless print() in set_version This was causing a TypeError in python3. Bug: https://bugs.gentoo.org/568906 setup.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.py b/setup.py index b32b7d6..01e4b3e 100755 --- a/setup.py +++ b/setup.py @@ -80,9 +80,6 @@ class set_version(core.Command): with io.open(f[0], 'r', 1, 'utf_8') as s: for line in s: newline = re.sub(pattern %f[1], '"%s"' % ver, line, 1) - if newline != line: - #log.info("%s: %s" % (f, newline)) - print("%s: %s" % (f[0], newline.encode('utf_8').strip('\n'))) updated_file.append(newline) with io.open(f[0], 'w', 1, 'utf_8') as s: s.writelines(updated_file)