Home
last modified time | relevance | path

Searched refs:indent (Results 1 – 25 of 67) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpprint.py52 def pprint(object, stream=None, indent=1, width=80, depth=None): argument
55 stream=stream, indent=indent, width=width, depth=depth)
58 def pformat(object, indent=1, width=80, depth=None): argument
60 return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
82 def __init__(self, indent=1, width=80, depth=None, stream=None): argument
100 indent = int(indent)
102 assert indent >= 0, "indent must be >= 0"
106 self._indent_per_level = indent
129 def _format(self, object, stream, indent, allowance, context, level): argument
139 sepLines = _len(rep) > (self._width - 1 - indent - allowance)
[all …]
Dtextwrap.py265 indent = self.subsequent_indent
267 indent = self.initial_indent
270 width = self.width - len(indent)
301 lines.append(indent + ''.join(cur_line))
384 for indent in indents:
386 margin = indent
390 elif indent.startswith(margin):
395 elif margin.startswith(indent):
396 margin = indent
Dplistlib.py153 def __init__(self, file, indentLevel=0, indent="\t"): argument
157 self.indent = indent
179 self.file.write(self.indentLevel * self.indent + line + "\n")
232 def __init__(self, file, indentLevel=0, indent="\t", writeHeader=1): argument
235 DumbXMLWriter.__init__(self, file, indentLevel, indent)
265 maxlinelength = 76 - len(self.indent.replace("\t", " " * 8) *
Dinspect.py386 indent = len(line) - content
387 margin = min(margin, indent)
609 indent = indentsize(lines[lnum])
612 indentsize(lines[end]) == indent:
617 while comment[:1] == '#' and indentsize(lines[end]) == indent:
633 self.indent = 0
657 self.indent = self.indent + 1
660 self.indent = self.indent - 1
664 if self.indent <= 0:
666 elif self.indent == 0 and type not in (tokenize.COMMENT, tokenize.NL):
Ddoctest.py225 def _indent(s, indent=4): argument
235 return re.sub('(?m)^(?!$)', indent*' ', s)
436 def __init__(self, source, want, exc_msg=None, lineno=0, indent=0, argument
449 self.indent = indent
591 indent=min_indent+len(m.group('indent')),
639 indent = len(m.group('indent'))
644 self._check_prompt_blank(source_lines, indent, name, lineno)
645 self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)
646 source = '\n'.join([sl[indent+4:] for sl in source_lines])
655 self._check_prefix(want_lines, ' '*indent, name,
[all …]
Dargparse.py334 def get_lines(parts, indent, prefix=None): argument
340 line_len = len(indent) - 1
343 lines.append(indent + ' '.join(line))
345 line_len = len(indent) - 1
349 lines.append(indent + ' '.join(line))
351 lines[0] = lines[0][len(indent):]
356 indent = ' ' * (len(prefix) + len(prog) + 1)
358 lines = get_lines([prog] + opt_parts, indent, prefix)
359 lines.extend(get_lines(pos_parts, indent))
361 lines = get_lines([prog] + pos_parts, indent, prefix)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_indent.py34 d2 = self.dumps(h, indent=2, sort_keys=True, separators=(',', ': '))
45 def check(indent, expected): argument
46 d1 = self.dumps(h, indent=indent)
50 self.json.dump(h, sio, indent=indent)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
Dtest_indent.py34 d2 = self.dumps(h, indent=2, sort_keys=True, separators=(',', ': '))
45 def check(indent, expected): argument
46 d1 = self.dumps(h, indent=indent)
50 self.json.dump(h, sio, indent=indent)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
D__init__.py116 indent=None,
123 allow_nan=True, cls=None, indent=None, separators=None, argument
169 cls is None and indent is None and separators is None and
176 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
186 allow_nan=True, cls=None, indent=None, separators=None, argument
229 cls is None and indent is None and separators is None and
236 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
Dencoder.py104 indent=None, separators=None, encoding='utf-8', default=None): argument
153 self.indent = indent
254 and self.indent is None and not self.sort_keys):
256 markers, self.default, _encoder, self.indent,
261 markers, self.default, _encoder, self.indent, floatstr,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
D__init__.py116 indent=None,
123 allow_nan=True, cls=None, indent=None, separators=None, argument
177 cls is None and indent is None and separators is None and
184 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
194 allow_nan=True, cls=None, indent=None, separators=None, argument
241 cls is None and indent is None and separators is None and
248 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
Dencoder.py103 indent=None, separators=None, encoding='utf-8', default=None): argument
158 self.indent = indent
260 and self.indent is None and not self.sort_keys):
262 markers, self.default, _encoder, self.indent,
267 markers, self.default, _encoder, self.indent, floatstr,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/
DbgenOutput.py71 indent = '\t' * _Level
75 lines[i] = indent + lines[i]
171 indent = ""
177 indent = indent + c
179 n = len(indent)
181 if line[:n] == indent:
184 for c in indent:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dtextwrap.py273 indent = self.subsequent_indent
275 indent = self.initial_indent
278 width = self.width - len(indent)
309 lines.append(indent + ''.join(cur_line))
392 for indent in indents:
394 margin = indent
398 elif indent.startswith(margin):
403 elif margin.startswith(indent):
404 margin = indent
Dinspect.py384 indent = len(line) - content
385 margin = min(margin, indent)
611 indent = indentsize(lines[lnum])
614 indentsize(lines[end]) == indent:
619 while comment[:1] == '#' and indentsize(lines[end]) == indent:
635 self.indent = 0
659 self.indent = self.indent + 1
662 self.indent = self.indent - 1
666 if self.indent <= 0:
668 elif self.indent == 0 and type not in (tokenize.COMMENT, tokenize.NL):
Dargparse.py336 def get_lines(parts, indent, prefix=None): argument
342 line_len = len(indent) - 1
345 lines.append(indent + ' '.join(line))
347 line_len = len(indent) - 1
351 lines.append(indent + ' '.join(line))
353 lines[0] = lines[0][len(indent):]
358 indent = ' ' * (len(prefix) + len(prog) + 1)
360 lines = get_lines([prog] + opt_parts, indent, prefix)
361 lines.extend(get_lines(pos_parts, indent))
363 lines = get_lines([prog] + pos_parts, indent, prefix)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/framer/
Dutil.py27 indent = None
31 indent = len(l) - len(ls)
33 L += [l[indent:] for l in lines]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Drefactor.py561 indent = None
568 indent, filename))
572 indent = line[:i]
573 elif (indent is not None and
574 (line.startswith(indent + self.PS2) or
575 line == indent + self.PS2.rstrip() + u"\n")):
580 indent, filename))
582 indent = None
586 indent, filename))
589 def refactor_doctest(self, block, lineno, indent, filename): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dnewslist.py168 def printtree(f, tree, indent, p): argument
171 if l > sublistsize and indent > 0:
183 if indent > 0:
189 indent = indent + 1
201 printtree(f, tree[i], indent, p+'.'+i)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dtraceback.c119 _Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno, int indent) in _Py_DisplaySourceLine() argument
200 while (indent > 0) { in _Py_DisplaySourceLine()
201 if(indent < 10) in _Py_DisplaySourceLine()
202 buf[indent] = '\0'; in _Py_DisplaySourceLine()
206 indent -= 10; in _Py_DisplaySourceLine()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dtraceback.c119 _Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno, int indent) in _Py_DisplaySourceLine() argument
200 while (indent > 0) { in _Py_DisplaySourceLine()
201 if(indent < 10) in _Py_DisplaySourceLine()
202 buf[indent] = '\0'; in _Py_DisplaySourceLine()
206 indent -= 10; in _Py_DisplaySourceLine()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_tuple_params.py57 indent = suite[0].children[1].value
61 indent = u"; "
100 new_lines[0].prefix = indent
107 suite[0].children[i].prefix = indent
/device/linaro/hikey/uefi-tools/
Duefi-build.sh.bash_completion21 # sh-indent-comment: t
22 # indent-tabs-mode: nil
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dpindent.py151 def putline(self, line, indent = None): argument
152 if indent is None:
156 tabs, spaces = divmod(indent*self.indentsize, self.tabsize)
272 indent = len(line[:i].expandtabs(self.tabsize))
273 while indent < current:
287 if indent == current and firstkw:
304 if indent > current:
311 indent, thiskw, thiskw, thisid
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dcmd.py153 def dump_options(self, header=None, indent=""): argument
157 self.announce(indent + header, level=log.INFO)
158 indent = indent + " "
164 self.announce(indent + "%s = %s" % (option, value),

123