__init__.py (9042:648b62f95015) | __init__.py (10169:628ed23d37af) |
---|---|
1# Copyright (c) 2007 The Regents of The University of Michigan 2# Copyright (c) 2010 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 53 unchanged lines hidden (view full) --- 62 stats_list.append(val) 63 raw_stats_list.append(val) 64 break 65 else: 66 fatal("unknown stat type %s", stat) 67 68 for stat in stats_list: 69 if not stat.check() or not stat.baseCheck(): | 1# Copyright (c) 2007 The Regents of The University of Michigan 2# Copyright (c) 2010 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 53 unchanged lines hidden (view full) --- 62 stats_list.append(val) 63 raw_stats_list.append(val) 64 break 65 else: 66 fatal("unknown stat type %s", stat) 67 68 for stat in stats_list: 69 if not stat.check() or not stat.baseCheck(): |
70 fatal("stat check failed for '%s' %d\n", stat.name, stat.id) | 70 fatal("statistic '%s' (%d) was not properly initialized " \ 71 "by a regStats() function\n", stat.name, stat.id) |
71 72 if not (stat.flags & flags.display): 73 stat.name = "__Stat%06d" % stat.id 74 75 def less(stat1, stat2): 76 v1 = stat1.name.split('.') 77 v2 = stat2.name.split('.') 78 return v1 < v2 --- 63 unchanged lines hidden --- | 72 73 if not (stat.flags & flags.display): 74 stat.name = "__Stat%06d" % stat.id 75 76 def less(stat1, stat2): 77 v1 = stat1.name.split('.') 78 v2 = stat2.name.split('.') 79 return v1 < v2 --- 63 unchanged lines hidden --- |