From 9a6fa73bfe6784a5a6bb3eeb7a958ad5ffa2962d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Dec 2014 22:15:10 +0100 Subject: [PATCH] Fix __repr__ of config - Wrong argument number for TrytondConfig - Use repr for argument issue4395 review14761002 --- proteus/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proteus/config.py b/proteus/config.py index fbe5299d01..3235be41c7 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -231,9 +231,9 @@ class TrytondConfig(Config): __init__.__doc__ = object.__init__.__doc__ def __repr__(self): - return "proteus.config.TrytondConfig"\ - "('%s', '%s', '%s', config_file=%s)"\ - % (self.database, self._user, self.config_file) + return ("proteus.config.TrytondConfig" + "(%s, %s, config_file=%s)" + % (repr(self.database), repr(self._user), repr(self.config_file))) __repr__.__doc__ = object.__repr__.__doc__ def __eq__(self, other): @@ -295,7 +295,7 @@ class XmlrpcConfig(Config): __init__.__doc__ = object.__init__.__doc__ def __repr__(self): - return "proteus.config.XmlrpcConfig('%s')" % self.url + return "proteus.config.XmlrpcConfig(%s)" % repr(self.url) __repr__.__doc__ = object.__repr__.__doc__ def __eq__(self, other):