# HG changeset patch # User Aurelien Campeas # Date 1380895194 -7200 # Node ID 77e31ede9b048137999a3d5e1be5736801439fb3 # Parent 01bca75ee8bdd8c77924e78d943a07941884c2d0 [schema] drop very old bw compat (pre 3.5.10) Closes #2925085. diff -r 01bca75ee8bd -r 77e31ede9b04 schema.py --- a/schema.py Fri Jul 12 10:50:56 2013 +0200 +++ b/schema.py Fri Oct 04 15:59:54 2013 +0200 @@ -982,14 +982,11 @@ distinct_query = None def serialize(self): - # start with a comma for bw compat,see below + # start with a semicolon for bw compat, see below return ';' + ','.join(sorted(self.mainvars)) + ';' + self.expression @classmethod def deserialize(cls, value): - # XXX < 3.5.10 bw compat - if not value.startswith(';'): - return cls(value) _, mainvars, expression = value.split(';', 2) return cls(expression, mainvars) @@ -1044,9 +1041,6 @@ self.msg or '') def deserialize(cls, value): - # XXX < 3.5.10 bw compat - if not value.startswith(';'): - return cls(value) value, msg = value.split('\n', 1) _, mainvars, expression = value.split(';', 2) return cls(expression, mainvars, msg)