[3.14 migration] strip constraint value to avoid extra new lines
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 10 Nov 2011 10:12:37 +0100
changeset 8079 0f1126b9038e
parent 8078 b4e1ef549bfa
child 8080 623432dc1deb
[3.14 migration] strip constraint value to avoid extra new lines
misc/migration/3.14.0_Any.py
--- a/misc/migration/3.14.0_Any.py	Wed Nov 09 19:19:24 2011 +0100
+++ b/misc/migration/3.14.0_Any.py	Thu Nov 10 10:12:37 2011 +0100
@@ -10,4 +10,4 @@
     mainvars = guess_rrqlexpr_mainvars(expression)
     yamscstr = CONSTRAINTS[rqlcstr.type](expression, mainvars)
     rqlcstr.set_attributes(value=yamscstr.serialize())
-    print 'updated', rqlcstr.type, rqlcstr.value
+    print 'updated', rqlcstr.type, rqlcstr.value.strip()