[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1618219 - /subversion/trunk/build/generator/gen_win_dependencies.py

From: Branko Čibej <brane_at_wandisco.com>
Date: Fri, 15 Aug 2014 22:06:33 +0100

On 15.08.2014 17:14, kotkov_at_apache.org wrote:
> Author: kotkov
> Date: Fri Aug 15 16:14:47 2014
> New Revision: 1618219
>
> URL: http://svn.apache.org/r1618219
> Log:
> Correctly handle a situation of an unresolved SQLite dependency in
> our gen_win_dependencies.py script, instead of printing a stacktrace
> (TypeError: not all arguments converted during string formatting).
>
> * build/generator/gen_win_dependencies.py
> ( _find_sqlite): The error message does not have any '%s' placeholders,
> so there is no need to pass the self.sqlite_path format argument.
>
> Modified:
> subversion/trunk/build/generator/gen_win_dependencies.py
>
> Modified: subversion/trunk/build/generator/gen_win_dependencies.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/build/generator/gen_win_dependencies.py?rev=1618219&r1=1618218&r2=1618219&view=diff
> ==============================================================================
> --- subversion/trunk/build/generator/gen_win_dependencies.py (original)
> +++ subversion/trunk/build/generator/gen_win_dependencies.py Fri Aug 15 16:14:47 2014
> @@ -1381,7 +1381,7 @@ class GenDependenciesBase(gen_base.Gener
> lib_name = None
> defines.append('SVN_SQLITE_INLINE')
> else:
> - sys.stderr.write("ERROR: SQLite not found\n" % self.sqlite_path)
> + sys.stderr.write("ERROR: SQLite not found\n")
> sys.stderr.write("Use '--with-sqlite' option to configure sqlite location.\n");
> sys.exit(1)

May I suggest that you add the missing %s placeholder instead? I expect
the whole point of trying to print the path is to make it easier for the
developer to debug her configuration.

-- Brnae

-- 
Branko Čibej | Director of Subversion
WANdisco | Realising the impossibilities of Big Data
e. brane_at_wandisco.com
Received on 2014-08-15 23:07:04 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.