[ooo-build-commit] .: bin/parse-scp2.py
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Jul 13 13:43:09 PDT 2010
bin/parse-scp2.py | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
New commits:
commit 66ad5820d6258a8693e349342036464007b308da
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Jul 13 16:42:57 2010 -0400
Cleaned up a bit.
* bin/parse-scp2.py:
diff --git a/bin/parse-scp2.py b/bin/parse-scp2.py
index e3beb36..4686ad0 100755
--- a/bin/parse-scp2.py
+++ b/bin/parse-scp2.py
@@ -58,19 +58,7 @@ class Scp2Parser(object):
self.n = len(self.tokens)
while self.i < self.n:
t = self.token()
- if t in ['File', 'Directory', 'FolderItem', 'RegistryItem', 'Installation']:
- name, attrs = self.__parseEntity()
- print name
- print attrs
- elif t == 'Directory':
- name, attrs = self.__parseEntity()
- print name
- print attrs
- elif t == 'FolderItem':
- name, attrs = self.__parseEntity()
- print name
- print attrs
- elif t == 'Module':
+ if t in ['File', 'Directory', 'FolderItem', 'RegistryItem', 'Installation', 'Module']:
name, attrs = self.__parseEntity()
print name
print attrs
More information about the ooo-build-commit
mailing list