Lines Matching defs:fold
155 def fold(self, *, policy):
513 token_type = 'no-fold-literal'
849 def fold(self, policy):
2031 """ no-fold-literal = "[" *dtext "]"
2036 "expected no-fold-literal but found '{}'".format(value))
2039 "expected '[' at the start of no-fold-literal "
2041 no_fold_literal.append(ValueTerminal('[', 'no-fold-literal-start'))
2047 "expected ']' at the end of no-fold-literal "
2049 no_fold_literal.append(ValueTerminal(']', 'no-fold-literal-end'))
2055 id-right = dot-atom-text / no-fold-literal / obs-id-right
2056 no-fold-literal = "[" *dtext "]"
2106 "expected dot-atom-text, no-fold-literal or obs-id-right"
2805 encoded_part = part.fold(policy=policy)[:-len(policy.linesep)]
2861 # We can't fold it onto the next line either...