equal
deleted
inserted
replaced
9 from __future__ import absolute_import |
9 from __future__ import absolute_import |
10 |
10 |
11 import os |
11 import os |
12 import sys |
12 import sys |
13 |
13 |
|
14 from .i18n import _ |
14 from . import ( |
15 from . import ( |
15 error, |
16 error, |
16 hook, |
17 hook, |
17 util, |
18 util, |
18 wireproto, |
19 wireproto, |
38 keys = args.split() |
39 keys = args.split() |
39 for n in xrange(len(keys)): |
40 for n in xrange(len(keys)): |
40 argline = self.fin.readline()[:-1] |
41 argline = self.fin.readline()[:-1] |
41 arg, l = argline.split() |
42 arg, l = argline.split() |
42 if arg not in keys: |
43 if arg not in keys: |
43 raise error.Abort("unexpected parameter %r" % arg) |
44 raise error.Abort(_("unexpected parameter %r") % arg) |
44 if arg == '*': |
45 if arg == '*': |
45 star = {} |
46 star = {} |
46 for k in xrange(int(l)): |
47 for k in xrange(int(l)): |
47 argline = self.fin.readline()[:-1] |
48 argline = self.fin.readline()[:-1] |
48 arg, l = argline.split() |
49 arg, l = argline.split() |