From ff11bfce39a7b86c0d00ecc2d3909665c58dc85d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 20 Feb 2009 07:16:16 +0000 Subject: Fix StringIO imports so that 2to3 can handle them. Also, replace shlex + StringIO usage with shlex.split() where appropriate. svn path=/main/trunk/; revision=12662 --- bin/repoman | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 46d5f452e..eaa03f749 100755 --- a/bin/repoman +++ b/bin/repoman @@ -26,9 +26,9 @@ from itertools import chain, izip from stat import S_ISDIR, ST_CTIME try: - import cStringIO as StringIO + from cStringIO import StringIO except ImportError: - import StringIO + from StringIO import StringIO if not hasattr(__builtins__, "set"): from sets import Set as set @@ -1614,7 +1614,7 @@ if dofail or \ # in $EDITOR while the user creates a commit message. # Otherwise, the user would not be able to see this output # once the editor has taken over the screen. -qa_output = StringIO.StringIO() +qa_output = StringIO() style_file = ConsoleStyleFile(sys.stdout) if options.mode == 'commit' and \ (not commitmessage or not commitmessage.strip()): -- cgit v1.2.3-1-g7c22