Changeset 791
- Timestamp:
- 12/09/05 14:44:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release12/python/scantable.py
r788 r791 226 226 raise IOError(msg) 227 227 if rcParams['verbose']: 228 print info 228 try: 229 from IPython.genutils import page as pager 230 except ImportError: 231 from pydoc import pager 232 pager(info) 229 233 else: 230 234 return info … … 765 769 def history(self): 766 770 hist = list(self._gethistory()) 767 print"-"*80771 out = "-"*80 768 772 for h in hist: 769 773 if h.startswith("---"): 770 printh774 out += "\n"+h 771 775 else: 772 776 items = h.split("##") … … 774 778 func = items[1] 775 779 items = items[2:] 776 print date777 print"Function: %s\n Parameters:" % (func)780 out += "\n"+date+"\n" 781 out += "Function: %s\n Parameters:" % (func) 778 782 for i in items: 779 783 s = i.split("=") 780 print " %s = %s" % (s[0],s[1]) 781 print "-"*80 784 out += "\n %s = %s" % (s[0],s[1]) 785 out += "\n"+"-"*80 786 try: 787 from IPython.genutils import page as pager 788 except ImportError: 789 from pydoc import pager 790 pager(out) 782 791 return 783 792
Note:
See TracChangeset
for help on using the changeset viewer.