Every line of 'comment in py' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
182 def reindentComment(self, stc, ln, dedent_only): 183 cursor = stc.GetCurrentPos() 184 fc = stc.PositionFromLine(ln) 185 lc = stc.GetLineEndPosition(ln) 186 text = stc.GetTextRange(fc, lc) 187 count = len(text) 188 pos = 0 189 while pos < count and text[pos] == ' ': 190 pos += 1 191 stc.SetTargetStart(fc) 192 stc.SetTargetEnd(lc) 193 stc.ReplaceTarget(text[pos:count]) 194 cursor -= pos 195 return cursor
339 def c_comment(s): 340 indent() 341 out('/* ') 342 out_Str(s) 343 out(' */\n')
5 def get_comment(self): 6 return ("# ", "")