Home
last modified time | relevance | path

Searched refs:_indent (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/
Dpretty_printer.py53 def _indent(self): member in PrettyPrinter
65 self._print('%s%s="%s"' % (self._indent(), name, node))
67 self._print('%s"%s"' % (self._indent(), node))
76 self._print('%s%s=%s%s' % (self._indent(), self._field(name),
79 self._print('%s%s%s' % (self._indent(), self._type(node), cont))
86 self._print('%s%s' % (self._indent(), self._warning('%s=<unset>' % f)))
91 self._print('%s%s=[' % (self._indent(), self._field(f)))
96 self._print('%s]' % (self._indent()))
98 self._print('%s%s=[]' % (self._indent(), self._field(f)))
101 self._print('%s%s=(' % (self._indent(), self._field(f)))
[all …]
/external/python/cpython3/Lib/json/
Dencoder.py259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr, argument
274 if _indent is not None and not isinstance(_indent, str):
275 _indent = ' ' * _indent
287 if _indent is not None:
289 newline_indent = '\n' + _indent * _current_indent_level
328 yield '\n' + _indent * _current_indent_level
343 if _indent is not None:
345 newline_indent = '\n' + _indent * _current_indent_level
408 yield '\n' + _indent * _current_indent_level
/external/harfbuzz_ng/src/
Dgen-vowel-constraints.py87 def _indent (self, depth): member in ConstraintSet
92 indent = self._indent (depth)
100 s.append ('{}buffer->idx + {} < count &&\n'.format (self._indent (depth + 2), len (self._c)))
103 self._indent (depth + 2), cp, index + i, ')' if i == len (self._c) - 1 else ' &&'))
106 s.append ('{}buffer->next_glyph ();\n'.format (self._indent (depth + 1)))
107 s.append ('{}_output_dotted_circle (buffer);\n'.format (self._indent (depth + 1)))
118 s.append (self._indent (depth + 1))
125 s.append ('{}break;\n'.format (self._indent (depth + 2)))
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java112 public String toString(String _indent) in toString() argument
115 _buf.append(_indent); in toString()
121 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
124 _buf.append(_indent); in toString()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java116 public String toString(String _indent) in toString() argument
119 _buf.append(_indent); in toString()
125 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
128 _buf.append(_indent); in toString()
/external/python/cpython2/Lib/json/
Dencoder.py272 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr, argument
298 if _indent is not None:
300 newline_indent = '\n' + (' ' * (_indent * _current_indent_level))
336 yield '\n' + (' ' * (_indent * _current_indent_level))
351 if _indent is not None:
353 newline_indent = '\n' + (' ' * (_indent * _current_indent_level))
412 yield '\n' + (' ' * (_indent * _current_indent_level))
/external/mesa3d/src/gallium/tools/trace/
Ddiff_state.py73 def _indent(self): member in Dumper
98 self._indent()
108 self._indent()
117 self._indent()
131 self._indent()
234 self.dumper._indent()
259 self.dumper._indent()
/external/libnl/python/netlink/
Dutil.py81 self._indent = indent
145 return '\n' + self._indent + self.format(format_string)
/external/python/cpython3/Lib/
Ddoctest.py228 def _indent(s, indent=4): function
1223 out('Trying:\n' + _indent(example.source) +
1224 'Expecting:\n' + _indent(example.want))
1226 out('Trying:\n' + _indent(example.source) +
1249 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1264 out.append(_indent(source))
1693 return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1698 return 'Expected:\n%sGot:\n%s' % (_indent(want), _indent(got))
1700 return 'Expected:\n%sGot nothing\n' % _indent(want)
1702 return 'Expected nothing\nGot:\n%s' % _indent(got)
Dargparse.py193 def _indent(self): member in HelpFormatter
213 self.formatter._indent()
240 self._indent()
622 self._indent()
/external/autotest/server/
Dserver_job.py148 self._indent = 0
153 return self._indent
157 self._indent += 1
161 self._indent -= 1
169 self._indent = indent
171 self._indenter._indent = self._indent
172 return context(self, self._indent)
/external/python/cpython2/Lib/
Ddoctest.py225 def _indent(s, indent=4): function
1209 out('Trying:\n' + _indent(example.source) +
1210 'Expecting:\n' + _indent(example.want))
1212 out('Trying:\n' + _indent(example.source) +
1235 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1250 out.append(_indent(source))
1656 return 'Differences (%s):\n' % kind + _indent(''.join(diff))
1661 return 'Expected:\n%sGot:\n%s' % (_indent(want), _indent(got))
1663 return 'Expected:\n%sGot nothing\n' % _indent(want)
1665 return 'Expected nothing\nGot:\n%s' % _indent(got)
Dargparse.py188 def _indent(self): member in HelpFormatter
208 self.formatter._indent()
237 self._indent()
615 self._indent()
/external/fonttools/Lib/fontTools/misc/
Detree.py179 _indent(self._root)
468 def _indent(elem, level=0): function
477 _indent(elem, level + 1)
/external/python/cpython2/Demo/parser/
Dunparse.py34 self._indent = 0
41 self.f.write("\n"+" "*self._indent + text)
50 self._indent += 1
54 self._indent -= 1
/external/python/cpython3/Tools/parser/
Dunparse.py34 self._indent = 0
41 self.f.write("\n"+" "*self._indent + text)
50 self._indent += 1
54 self._indent -= 1
/external/sfntly/cpp/src/test/tinyxml/
Dtinyxml.h1757 void SetIndent( const char* _indent ) { indent = _indent ? _indent : "" ; } in SetIndent() argument
/external/bcc/tests/cc/
Dcatch.hpp3739 void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { in spliceLine() argument
3740 lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); in spliceLine()
4929 void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { in spliceLine() argument
4930 lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); in spliceLine()