search for: tokenizer_re

Displaying 3 results from an estimated 3 matches for "tokenizer_re".

2015 Aug 21
2
Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
Control: tag -1 +moreinfo Hello, It seems this was incorrectly closed as xend only since this code can be used on upgrade (as part of rebooting from xend into a new system). I don't have any systems to test but I think the fix is trivially the following: @@ -51,7 +51,7 @@ class DataJSON(Data): class DataSXP(Data): def __init__(self, p): - s = SXPParser()(p) + s =
2015 Aug 22
2
Bug#763102: Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
...for that issue is to s/self/cls/ in the body rather than s/cls/self/ in the declaration. I've updated the feature/bug763102 with the following extra patch: @@ -14,7 +14,7 @@ class SXPParser(object): def loads(cls, input): data = [] stack = [] - for match in self.tokenizer_re.finditer(input): + for match in cls.tokenizer_re.finditer(input): if match.group('open'): stack.append([]) elif match.group('close'): Ian.
2014 Sep 27
5
Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
...fixes the problem: diff -ur a/usr/lib/xen-common/bin/xen-init-list b/usr/lib/xen-common/bin/xen- init-list --- a/usr/lib/xen-common/bin/xen-init-list 2014-09-06 22:39:31.000000000 +0200 +++ b/usr/lib/xen-common/bin/xen-init-list 2014-09-27 19:55:20.244357777 +0200 @@ -11,7 +11,7 @@ tokenizer_re = re.compile(tokenizer_rules, re.X) @classmethod - def loads(cls, input): + def loads(self, input): data = [] stack = [] for match in self.tokenizer_re.finditer(input): @@ -49,7 +49,7 @@ class DataSXP(Data): def __init__(self, p): - s = SXPParser...