From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QF2Tx-0003dV-A3 for garchives@archives.gentoo.org; Wed, 27 Apr 2011 11:00:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A87F1C0BB; Wed, 27 Apr 2011 10:58:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4D9411C0BB for ; Wed, 27 Apr 2011 10:58:46 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7F1AC2AC00A for ; Wed, 27 Apr 2011 10:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E446180507 for ; Wed, 27 Apr 2011 10:58:44 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <34d7a5444ee72a7b6ca9193c2dc5975d0b894a8a.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/argsparser.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 34d7a5444ee72a7b6ca9193c2dc5975d0b894a8a Date: Wed, 27 Apr 2011 10:58:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 79c5aca89643e698617f40befe31f72b commit: 34d7a5444ee72a7b6ca9193c2dc5975d0b894a8a Author: Brian Dolbec gmail com> AuthorDate: Sun Mar 27 07:13:32 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Mar 27 07:13:32 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D34d7a544 migrate to print() --- layman/argsparser.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/layman/argsparser.py b/layman/argsparser.py index ff7f8f7..708b1f8 100644 --- a/layman/argsparser.py +++ b/layman/argsparser.py @@ -20,6 +20,8 @@ # '''Defines the configuration options and provides parsing functionality.= ''' =20 +from __future__ import print_function + __version__ =3D "$Id: config.py 286 2007-01-09 17:48:23Z wrobel $" =20 #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D @@ -227,7 +229,7 @@ class ArgsParser(BareConfig): # Parse the command line first since we need to get the config # file option. if len(args) =3D=3D 1: - print 'Usage:%s' % _USAGE + print('Usage:%s' % _USAGE) sys.exit(0) =20 (self.options, remain_args) =3D self.parser.parse_args(args)