From da1c342e25735e00a436f495cb25a18609bcab37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 18 Jul 2010 11:48:51 +0000 Subject: [PATCH] cli: Do not overwrite the value given by column parameter in formatted_output BUG:FIXED:13795 --- pisi/cli/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/cli/__init__.py b/pisi/cli/__init__.py index b41d7977..2b927fb6 100644 --- a/pisi/cli/__init__.py +++ b/pisi/cli/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2005 - 2007, TUBITAK/UEKAE +# Copyright (C) 2005-2010, TUBITAK/UEKAE # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -91,7 +91,7 @@ class CLI(pisi.ui.UI): new_msg = "" for line in msg.split("\n"): - key, column, rest = line.partition(column) + key, _column, rest = line.partition(column) rest = align(rest) new_msg += line_format % {"key":key, "column":column, "rest":rest} if not noln: