[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-support/pology/scripts
From: Chusslove Illich <caslav.ilic () gmx ! net>
Date: 2008-12-31 16:37:50
Message-ID: 1230741470.849728.26555.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 903919 by ilic:
Allow arbitrary separator in selector specification.
M +8 -1 poascribe.py
--- trunk/l10n-support/pology/scripts/poascribe.py #903918:903919
@@ -1180,12 +1180,19 @@
# Build compound selector out of list of specifications.
# Selector specification is a string in format NAME:ARG1:ARG2:...
+# (instead of colon, separator can be any non-alphanumeric excluding
+# underscore and hyphen)
def build_selector (options, selspecs, hist=False):
# Component selectors.
selectors = []
for selspec in selspecs:
- lst = selspec.split(":")
+ argsep = ":"
+ for c in selspec:
+ if not (c.isalpha() or c.isdigit() or c in ("_", "-")):
+ argsep = c
+ break
+ lst = selspec.split(argsep)
sname, sargs = lst[0], lst[1:]
negated = False
if sname.startswith("n"):
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic