Home | History | Annotate | Download | only in python2.7

Lines Matching refs:indent

55 def pprint(object, stream=None, indent=1, width=80, depth=None):
58 stream=stream, indent=indent, width=width, depth=depth)
61 def pformat(object, indent=1, width=80, depth=None):
63 return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
85 def __init__(self, indent=1, width=80, depth=None, stream=None):
89 indent
90 Number of spaces to indent for each level of nesting.
103 indent = int(indent)
105 assert indent >= 0, "indent must be >= 0"
109 self._indent_per_level = indent
132 def _format(self, object, stream, indent, allowance, context, level):
142 sepLines = _len(rep) > (self._width - 1 - indent - allowance)
157 indent = indent + self._indent_per_level
163 self._format(ent, stream, indent + _len(rep) + 2,
169 write(',\n%s%s: ' % (' '*indent, rep))
172 self._format(ent, stream, indent + _len(rep) + 2,
174 indent = indent - self._indent_per_level
195 indent += 4
203 indent += 10
211 indent = indent + self._indent_per_level
212 self._format(object[0], stream, indent, allowance + 1,
217 write(',\n' + ' '*indent)
220 self._format(ent, stream, indent,
222 indent = indent - self._indent_per_level