Opened 12 years ago
Closed 12 years ago
#37 closed (fixed)
syntax error in Resource.slices()
Reported by: | chaos@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | 2012-09-04 client release |
Component: | Clients | Version: | |
Keywords: | v0.2.0 | Cc: | |
Dependencies: |
Description
The slices
getter of the Resource
object is defined as:
def slices(self): slices = {} for sliver in self.__slivers: for slice in sliver.slices: slices[slice.id] = slice return values(slices)
This throws the exception:
... File "/home/chaos/gmoc.py", line 716, in slices return values(slices) NameError: global name 'values' is not defined
I think this is just a typo: values(slices)
instead of slices.values()
.
Change History (3)
comment:1 Changed 12 years ago by
Keywords: | v0.2.0 added |
---|
comment:2 Changed 12 years ago by
This error also exists in Aggregate.slices as well:
File "/home/chaos/gmoc.py", line 755, in slices return values(slices) NameError: global name 'values' is not defined
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
The Resource.slices and Aggregate.slices getters both succeed in v0.2.1.
Note: See
TracTickets for help on using
tickets.
This typo is not fixed: when running
Resource.slices()
, i still get: