fix format string stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 02 Dec 2009 13:22:50 +0100
branchstable
changeset 3968 e8dbad65a7a2
parent 3967 dfb4b3797113
child 3969 970a748684b5
fix format string
schema.py
--- a/schema.py	Wed Dec 02 12:55:51 2009 +0100
+++ b/schema.py	Wed Dec 02 13:22:50 2009 +0100
@@ -614,8 +614,8 @@
         self.msg = msg
 
     def serialize(self):
-        # start with a comma for bw compat, see below
-        return ';%s;%s\n%s' % (self.mainvars + ';' + self.restriction,
+        # start with a semicolon for bw compat, see below
+        return ';%s;%s\n%s' % (self.mainvars, self.restriction,
                                self.msg or '')
 
     def deserialize(cls, value):