main.py (5824:b88edb9f3333) | main.py (5873:67a6ea624776) |
---|---|
1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 24 unchanged lines hidden (view full) --- 33import sys 34 35from util import attrdict 36import config 37from options import OptionParser 38 39__all__ = [ 'options', 'arguments', 'main' ] 40 | 1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 24 unchanged lines hidden (view full) --- 33import sys 34 35from util import attrdict 36import config 37from options import OptionParser 38 39__all__ = [ 'options', 'arguments', 'main' ] 40 |
41def print_list(items, indent=4): 42 line = ' ' * indent 43 for i,item in enumerate(items): 44 if len(line) + len(item) > 76: 45 print line 46 line = ' ' * indent 47 48 if i < len(items) - 1: 49 line += '%s, ' % item 50 else: 51 line += item 52 print line 53 | |
54usage="%prog [m5 options] script.py [script options]" 55version="%prog 2.0" 56brief_copyright=''' 57Copyright (c) 2001-2008 58The Regents of The University of Michigan 59All Rights Reserved 60''' 61 --- 335 unchanged lines hidden --- | 41usage="%prog [m5 options] script.py [script options]" 42version="%prog 2.0" 43brief_copyright=''' 44Copyright (c) 2001-2008 45The Regents of The University of Michigan 46All Rights Reserved 47''' 48 --- 335 unchanged lines hidden --- |