PluginPrintRemover.py

changeset 42
f97a2aaeb66d
parent 41
dbdf7ebfbc6e
child 44
fd83cf39e27d
equal deleted inserted replaced
41:dbdf7ebfbc6e 42:f97a2aaeb66d
21 # Start-Of-Header 21 # Start-Of-Header
22 name = "Print Remover Plug-in" 22 name = "Print Remover Plug-in"
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 23 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
24 autoactivate = True 24 autoactivate = True
25 deactivateable = True 25 deactivateable = True
26 version = "2.1.0" 26 version = "2.1.1"
27 className = "PrintRemoverPlugin" 27 className = "PrintRemoverPlugin"
28 packageName = "PrintRemover" 28 packageName = "PrintRemover"
29 shortDescription = "Remove print() like debug statements." 29 shortDescription = "Remove print() like debug statements."
30 longDescription = \ 30 longDescription = \
31 """This plug-in implements a tool to remove lines starting with""" \ 31 """This plug-in implements a tool to remove lines starting with""" \
329 if newText != text: 329 if newText != text:
330 editor.beginUndoAction() 330 editor.beginUndoAction()
331 editor.selectAll() 331 editor.selectAll()
332 editor.replaceSelectedText(newText) 332 editor.replaceSelectedText(newText)
333 editor.endUndoAction() 333 editor.endUndoAction()
334
335 #
336 # eflag: noqa = M801

eric ide

mercurial