Show More
@@ -50,14 +50,12 b' class baseformatter(object):' | |||
|
50 | 50 | '''do default text output while assigning data to item''' |
|
51 | 51 | fieldkeys = fields.split() |
|
52 | 52 | assert len(fieldkeys) == len(fielddata) |
|
53 |
|
|
|
54 | self._item[k] = v | |
|
53 | self._item.update(zip(fieldkeys, fielddata)) | |
|
55 | 54 | def condwrite(self, cond, fields, deftext, *fielddata, **opts): |
|
56 | 55 | '''do conditional write (primarily for plain formatter)''' |
|
57 | 56 | fieldkeys = fields.split() |
|
58 | 57 | assert len(fieldkeys) == len(fielddata) |
|
59 |
|
|
|
60 | self._item[k] = v | |
|
58 | self._item.update(zip(fieldkeys, fielddata)) | |
|
61 | 59 | def plain(self, text, **opts): |
|
62 | 60 | '''show raw text for non-templated mode''' |
|
63 | 61 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now