1.1 --- a/encoders.py Tue Nov 29 23:13:18 2016 +0100
1.2 +++ b/encoders.py Wed Nov 30 16:18:17 2016 +0100
1.3 @@ -321,6 +321,15 @@
1.4 else:
1.5 return '"%s"' % str(value).replace('"', '\\"').replace("\n", "\\n").replace("\t", "\\t").replace("\r", "\\r")
1.6
1.7 +def encode_literal_data_initialiser(style):
1.8 +
1.9 + """
1.10 + Encode a reference to a function populating the data for a literal having
1.11 + the given 'style' ("mapping" or "sequence").
1.12 + """
1.13 +
1.14 + return "__newdata_%s" % style
1.15 +
1.16 def encode_literal_instantiator(path):
1.17
1.18 """