Home
last modified time | relevance | path

Searched refs:lstrip (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/yapf/yapf/yapflib/
Dverifier.py46 ast.parse(textwrap.dedent(code.lstrip('\n')).lstrip(), '<string>', 'exec')
57 code = textwrap.dedent(code.lstrip('\n')).lstrip()
75 textwrap.dedent(try_code.lstrip('\n')).lstrip(), '<string>', 'exec')
Dcomment_splicer.py53 if child.prefix.lstrip().startswith('#'):
62 child_prefix = child.prefix.lstrip('\n')
74 comment_column -= len(comment_prefix.lstrip())
163 value = comment_lines[0].lstrip()
168 len(comment_lines[0]) - len(comment_lines[0].lstrip()))
181 comment_prefix[rindex:].lstrip()))
221 while index < len(lines) and lines[index].lstrip().startswith('#'):
237 while index < len(lines) and not lines[index].lstrip():
/external/autotest/site_utils/lxc/
Dzygote.py95 constants.CONTAINER_HOST_DIR.lstrip(
138 constants.CONTAINER_AUTOTEST_DIR.lstrip(os.path.sep))
160 container_path.lstrip(os.path.sep)))
163 container_path.lstrip(os.path.sep))
201 source.lstrip(os.path.sep))
212 destination.lstrip(os.path.sep))
/external/python/setuptools/setuptools/tests/
Dtest_windows_wrappers.py69 """).lstrip()
108 """).lstrip()
133 """).lstrip()
145 """).lstrip()
Dtextwrap.py8 return textwrap.dedent(s).lstrip()
/external/mesa3d/scons/
Dsource_list.py74 val = self._expand_value(line[op_end:].lstrip())
97 line = self.line_cont + line.lstrip()
103 line = line.lstrip()
/external/catch2/scripts/
DupdateDocumentToC.py90 stripped_both = stripped_right.lstrip('#')
144 l_stripped = l.lstrip()
151 if not l.lstrip('#').startswith(' '):
154 if len(l) - len(l.lstrip('#')) > 6:
/external/cldr/tools/scripts/
Dcoll2icu.py185 if ("<reset" in line) or line.lstrip().startswith("<!--"):
242 line = line.lstrip()
252 line = partial + line.lstrip() + "\n"
/external/icu/icu4c/source/test/depstest/
Ddependencies.py130 line = line.lstrip()
154 name = line[9:].lstrip()
163 name = line[7:].lstrip()
/external/llvm/utils/
DlldbDataFormatters.py35 return int(name.lstrip('[').rstrip(']'))
74 return int(name.lstrip('[').rstrip(']'))
/external/python/setuptools/pkg_resources/tests/
Dtest_working_set.py78 strip_comments(s.lstrip()) for s in
79 textwrap.dedent(test).lstrip().split('\n\n', 5)
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
DlldbDataFormatters.py35 return int(name.lstrip('[').rstrip(']'))
74 return int(name.lstrip('[').rstrip(']'))
/external/autotest/client/site_tests/network_Ipv6SimpleNegotiation/
Dnetwork_Ipv6SimpleNegotiation.py41 parts = line.lstrip().split()
62 parts = line.lstrip().split(' ')
/external/python/cpython2/Lib/
Dinspect.py352 return len(expline) - len(string.lstrip(expline))
381 content = len(string.lstrip(line))
387 lines[0] = lines[0].lstrip()
612 if end >= 0 and string.lstrip(lines[end])[:1] == '#' and \
614 comments = [string.lstrip(string.expandtabs(lines[end]))]
617 comment = string.lstrip(string.expandtabs(lines[end]))
622 comment = string.lstrip(string.expandtabs(lines[end]))
Dstringold.py84 def lstrip(s): function
90 return s.lstrip()
/external/googletest/googletest/scripts/
Dpump.py712 if cur_line.lstrip().startswith('#'):
724 indent = len(before_comment) - len(before_comment.lstrip())
736 cur_line = seg.lstrip()
742 indent = len(line) - len(line.lstrip())
753 seg = seg.lstrip()
761 cur_line = (cur_line + seg).lstrip()
766 cur_line = seg.lstrip()
/external/google-breakpad/src/testing/gtest/scripts/
Dpump.py712 if cur_line.lstrip().startswith('#'):
724 indent = len(before_comment) - len(before_comment.lstrip())
736 cur_line = seg.lstrip()
742 indent = len(line) - len(line.lstrip())
753 seg = seg.lstrip()
761 cur_line = (cur_line + seg).lstrip()
766 cur_line = seg.lstrip()
/external/python/cpython2/Lib/distutils/
Dtext_file.py237 line = line.lstrip()
263 line = line.lstrip()
/external/python/cpython3/Lib/distutils/
Dtext_file.py226 line = line.lstrip()
251 line = line.lstrip()
/external/python/cpython3/Tools/clinic/
Dcpp.py121 line = before.rstrip() + ' ' + after.lstrip()
137 line = line[1:].lstrip()
/external/python/cpython3/Lib/email/
Dquoprimime.py111 L.append(s.lstrip())
115 L.append(s.lstrip())
/external/python/cpython2/Doc/tools/
Drstlint.py112 if line.lstrip()[0] not in '+|' and \
114 not line.lstrip().startswith(('.. function',
/external/python/cpython3/Doc/tools/
Drstlint.py113 if line.lstrip()[0] not in '+|' and \
115 not line.lstrip().startswith(('.. function',
/external/python/cpython2/Lib/email/
Dquoprimime.py97 L.append(s.lstrip())
101 L.append(s.lstrip())
/external/mesa3d/src/egl/generate/
Dgen_egl_dispatch.py107 """.lstrip("\n"))
191 """).lstrip("\n").format(f=func, ef=eglFunc)

12345678910