From a7232b80b039e93ad52ef95ce5e0a68d2bfcf47c Mon Sep 17 00:00:00 2001 From: Sambhav Kothari Date: Thu, 19 Jan 2017 02:41:20 +0530 Subject: [PATCH] Rename args to more appropriate names --- picard/script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/picard/script.py b/picard/script.py index 38c361bf7..1fca623c0 100644 --- a/picard/script.py +++ b/picard/script.py @@ -684,14 +684,14 @@ def func_firstwords(parser, text, length): return text[:length].rsplit(' ', 1)[0] -def func_startswith(parser, text, pattern): - if text.startswith(pattern): +def func_startswith(parser, text, prefix): + if text.startswith(prefix): return "1" return "0" -def func_endswith(parser, text, pattern): - if text.endswith(pattern): +def func_endswith(parser, text, suffix): + if text.endswith(suffix): return "1" return "0"