Changeset 1691 for trunk/python
- Timestamp:
- 02/10/10 13:18:11 (15 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1689 r1691 4 4 """ 5 5 import os,sys,shutil, platform 6 import functools 6 try: 7 from functools import wraps as wraps_dec 8 except ImportError: 9 from asap.compatibility import wraps as wraps_dec 7 10 8 11 # Set up AIPSPATH and first time use of asap i.e. ~/.asap/* … … 357 360 358 361 def print_log_dec(f): 359 @ functools.wraps(f)362 @wraps_dec(f) 360 363 def wrap_it(*args, **kw): 361 364 val = f(*args, **kw) … … 398 401 import matplotlib 399 402 matplotlib.use("TkAgg") 400 import pylab403 from matplotlib import pylab 401 404 xyplotter = pylab 402 405 plotter = asapplotter(gui) -
trunk/python/scantable.py
r1689 r1691 1 import functools 1 try: 2 from functools import wraps as wraps_dec 3 except ImportError: 4 from asap.compatibility import wraps as wraps_dec 5 2 6 from asap._asap import Scantable 3 7 from asap import rcParams … … 11 15 12 16 def preserve_selection(func): 13 @ functools.wraps(func)17 @wraps_dec(func) 14 18 def wrap(obj, *args, **kw): 15 19 basesel = obj.get_selection()
Note:
See TracChangeset
for help on using the changeset viewer.