Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Wed, 27 Apr 2011 11:00:33
Message-Id: 34d7a5444ee72a7b6ca9193c2dc5975d0b894a8a.dol-sen@gentoo
1 commit: 34d7a5444ee72a7b6ca9193c2dc5975d0b894a8a
2 Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 27 07:13:32 2011 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Sun Mar 27 07:13:32 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=34d7a544
7
8 migrate to print()
9
10 ---
11 layman/argsparser.py | 4 +++-
12 1 files changed, 3 insertions(+), 1 deletions(-)
13
14 diff --git a/layman/argsparser.py b/layman/argsparser.py
15 index ff7f8f7..708b1f8 100644
16 --- a/layman/argsparser.py
17 +++ b/layman/argsparser.py
18 @@ -20,6 +20,8 @@
19 #
20 '''Defines the configuration options and provides parsing functionality.'''
21
22 +from __future__ import print_function
23 +
24 __version__ = "$Id: config.py 286 2007-01-09 17:48:23Z wrobel $"
25
26 #===============================================================================
27 @@ -227,7 +229,7 @@ class ArgsParser(BareConfig):
28 # Parse the command line first since we need to get the config
29 # file option.
30 if len(args) == 1:
31 - print 'Usage:%s' % _USAGE
32 + print('Usage:%s' % _USAGE)
33 sys.exit(0)
34
35 (self.options, remain_args) = self.parser.parse_args(args)