[MPlayer-cvslog] r37353 - trunk/TOOLS/mphelp_check.py

ib subversion at mplayerhq.hu
Wed Jan 7 11:26:45 CET 2015


Author: ib
Date: Wed Jan  7 11:26:45 2015
New Revision: 37353

Log:
Fix the tool for checking translated messages header files.

Starting with r36805 there may be conditionally empty #defines
the tool couldn't handle.

Reported by Ambrogio De Lorenzo, ogio.spam gmail com.

Modified:
   trunk/TOOLS/mphelp_check.py

Modified: trunk/TOOLS/mphelp_check.py
==============================================================================
--- trunk/TOOLS/mphelp_check.py	Fri Jan  2 11:10:05 2015	(r37352)
+++ trunk/TOOLS/mphelp_check.py	Wed Jan  7 11:26:45 2015	(r37353)
@@ -20,7 +20,11 @@ def parse(filename):
             while line and line[-1] == '\\':
                 line = it.next().strip()
             continue
-        _, name, value = line.split(None, 2)
+        try:
+            _, name, value = line.split(None, 2)
+        except ValueError:
+            if name in r:
+                continue
         value = value.strip('"')
         while line[-1] == '\\':
             line = it.next().strip()


More information about the MPlayer-cvslog mailing list