Home
last modified time | relevance | path

Searched refs:expandtabs (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Tools/scripts/
Dpindent.py101 indentsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
107 self.expandtabs = expandtabs
121 if self.expandtabs:
122 self._write(line.expandtabs(self.tabsize))
266 indent = len(indentws.expandtabs(self.tabsize))
267 current = len(currentws.expandtabs(self.tabsize))
280 current = len(currentws.expandtabs(self.tabsize))
332 stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
333 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
338 stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
[all …]
Duntabify.py36 newtext = text.expandtabs(tabsize)
Dreindent.py186 self.lines = [_rstrip(line).expandtabs() + "\n"
/third_party/python/Lib/idlelib/
Dformat.py143 if len((partial + word).expandtabs()) > limit and \
209 return m.end(), len(m.group().expandtabs(tabwidth))
341 lines[pos] = lines[pos].expandtabs(tabwidth)
Dpyparse.py491 return len(code[i:j].expandtabs(self.tabwidth)) + extra
557 return len(code[self.stmt_start:i].expandtabs(\
Deditor.py1298 have = len(chars.expandtabs(tabwidth))
1306 have = len(chars.expandtabs(tabwidth))
1343 effective = len(prefix.expandtabs(self.tabwidth))
1548 return m.end(), len(m.group().expandtabs(tabwidth))
DChangeLog899 return len(string.expandtabs(str[self.stmt_start :
/third_party/python/Lib/test/test_json/
Dtest_indent.py45 self.assertEqual(d2, expect.expandtabs(2))
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
Dcdoc.py293 lst.append(l.expandtabs(8), filename, lineno)
/third_party/python/Lib/
Dtextwrap.py154 text = text.expandtabs(self.tabsize)
Dinspect.py650 expline = line.expandtabs()
750 lines = doc.expandtabs().split('\n')
1020 comments.append(lines[end].expandtabs())
1030 comments = [lines[end].expandtabs().lstrip()]
1033 comment = lines[end].expandtabs().lstrip()
1038 comment = lines[end].expandtabs().lstrip()
Dtrace.py324 outfile.write(line.expandtabs(8))
Ddifflib.py1746 line = line.expandtabs(self._tabsize)
Ddoctest.py636 string = string.expandtabs()
Dpydoc.py617 text = self.escape(text.expandtabs())
/third_party/python/Lib/distutils/
Dfancy_getopt.py386 text = text.expandtabs()
/third_party/python/Tools/unicode/
Dgencodec.py356 return '\n'.join(l).expandtabs()
/third_party/python/Lib/collections/
D__init__.py1430 def expandtabs(self, tabsize=8): member in UserString
1431 return self.__class__(self.data.expandtabs(tabsize))
/third_party/python/Doc/library/
Dtextwrap.rst175 expanded to spaces using the :meth:`expandtabs` method of *text*.
Dstdtypes.rst1621 .. method:: str.expandtabs(tabsize=8)
1636 >>> '01\t012\t0123\t01234'.expandtabs()
1638 >>> '01\t012\t0123\t01234'.expandtabs(4)
3130 .. method:: bytes.expandtabs(tabsize=8)
3131 bytearray.expandtabs(tabsize=8)
3147 >>> b'01\t012\t0123\t01234'.expandtabs()
3149 >>> b'01\t012\t0123\t01234'.expandtabs(4)
/third_party/python/Lib/test/
Dtest_bigmem.py121 self.assertTrue(s.expandtabs() == s)
125 s = s.expandtabs(tabsize)
Dtest_unicode.py2324 self.assertRaises(OverflowError, 't\tt\t'.expandtabs, sys.maxsize)
2329 self.assertIs(s.expandtabs(), s)
/third_party/python/Misc/
DHISTORY3235 str/bytes.expandtabs().
15270 - Issue #4935: The overflow checking code in the expandtabs() method common
28200 - Added strop.expandtabs() so string.expandtabs() is now much faster.
34403 - New function string.expandtabs() expands tabs in a string