Skip to content

Commit 64f4bdc

Browse files
committed
Remove unused argument "filename "in method "add_message"
1 parent 61f8235 commit 64f4bdc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

msgcheck.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(self, filename, args):
119119
self.msgs = []
120120
self.checkers = []
121121

122-
def add_message(self, filename, numline_msgid, msgfuzzy, msg):
122+
def add_message(self, numline_msgid, msgfuzzy, msg):
123123
"""
124124
Add a message from PO file in list of messages.
125125
"""
@@ -187,8 +187,7 @@ def read(self):
187187
line = m.group(3)
188188
if msgcurrent == 'msgid':
189189
if oldmsgcurrent.startswith('msgstr'):
190-
self.add_message(self.filename,
191-
numline_msgid,
190+
self.add_message(numline_msgid,
192191
msgfuzzy,
193192
msg)
194193
msgfuzzy = fuzzy
@@ -198,8 +197,7 @@ def read(self):
198197
if msgcurrent and line.startswith('"'):
199198
msg[msgcurrent] = msg.get(msgcurrent, '') + line[1:-1]
200199
if msgcurrent.startswith('msgstr'):
201-
self.add_message(self.filename,
202-
numline_msgid,
200+
self.add_message(numline_msgid,
203201
msgfuzzy,
204202
msg)
205203
except Exception:

0 commit comments

Comments
 (0)