Method
__init__
(self,name,args=[],opts=[],**kwargs)
Source from the content-addressed store, hash-verified
| 49 | |
| 50 | class Item: |
| 51 | def __init__(self,name,args=[],opts=[],**kwargs): |
| 52 | self.name = name |
| 53 | args=list(args) |
| 54 | for i in range(len(args)): |
| 55 | if type(args[i]) == tuple or type(args[i]) == list: |
| 56 | args[i] = Vector(args[i]) |
| 57 | self.args = args |
| 58 | self.opts = opts |
| 59 | self.kwargs=kwargs |
| 60 | def append(self, item): |
| 61 | self.opts.append( item ) |
| 62 | def write(self, file): |
Callers
nothing calls this directly
Tested by
no test coverage detected