mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 16:44:06 +00:00
Lint (again)
This commit is contained in:
committed by
Philipp Wolfer
parent
ae7342447f
commit
329f26acb6
@@ -559,7 +559,8 @@ def _compute_logic(operation, *args):
|
||||
return operation(args)
|
||||
|
||||
|
||||
@script_function(eval_args=False, documentation=N_("""`$if(if,then,else)`
|
||||
@script_function(eval_args=False, documentation=N_(
|
||||
"""`$if(if,then,else)`
|
||||
|
||||
If `if` is not empty, it returns `then`, otherwise it returns `else`."""
|
||||
))
|
||||
@@ -572,7 +573,8 @@ def func_if(parser, _if, _then, _else=None):
|
||||
return ''
|
||||
|
||||
|
||||
@script_function(eval_args=False, documentation=N_("""`$if2(a1,a2,a3,...)`
|
||||
@script_function(eval_args=False, documentation=N_(
|
||||
"""`$if2(a1,a2,a3,...)`
|
||||
|
||||
Returns first non empty argument."""
|
||||
))
|
||||
@@ -585,7 +587,8 @@ def func_if2(parser, *args):
|
||||
return ''
|
||||
|
||||
|
||||
@script_function(eval_args=False, documentation=N_("""`$noop(...)`
|
||||
@script_function(eval_args=False, documentation=N_(
|
||||
"""`$noop(...)`
|
||||
|
||||
Does nothing (useful for comments or disabling a block of code)."""
|
||||
))
|
||||
@@ -594,10 +597,10 @@ def func_noop(parser, *args):
|
||||
return ''
|
||||
|
||||
|
||||
@script_function(documentation=N_("""`$left(text,num)`
|
||||
@script_function(documentation=N_(
|
||||
"""`$left(text,num)`
|
||||
|
||||
Returns the first `num` characters from `text`.
|
||||
"""
|
||||
Returns the first `num` characters from `text`."""
|
||||
))
|
||||
def func_left(parser, text, length):
|
||||
"""Returns first ``num`` characters from ``text``."""
|
||||
|
||||
@@ -158,6 +158,7 @@ p {
|
||||
self.parent.scriptfuncdoc_shown = False
|
||||
super().reject()
|
||||
|
||||
|
||||
class ScriptingOptionsPage(OptionsPage):
|
||||
|
||||
NAME = "scripting"
|
||||
|
||||
Reference in New Issue
Block a user