From: Zac Medico Date: Sat, 13 Jan 2007 22:51:36 +0000 (-0000) Subject: Fix 'TypeError: not all arguments converted during string formatting'. Thanks to... X-Git-Tag: v2.1.2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42c378d04244cfc94bf26068a49ed1d865cd72fb;p=portage.git Fix 'TypeError: not all arguments converted during string formatting'. Thanks to marienz. svn path=/main/trunk/; revision=5634 --- diff --git a/pym/portage.py b/pym/portage.py index ee2dd5ef6..d192b75b4 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -980,8 +980,8 @@ class config: def check_var_directory(varname, var): if not os.path.isdir(var): - writemsg("!!! Error: %s='%s' is not a directory. " + \ - "Please correct this.\n" % (var, varname), + writemsg(("!!! Error: %s='%s' is not a directory. " + \ + "Please correct this.\n") % (var, varname), noiselevel=-1) raise portage_exception.DirectoryNotFound(var)