Module EDCompiler
[hide private]
[frames] | no frames]

Source Code for Module EDCompiler

 1  ################################################################################ 
 2  # Warning: Deprecation mode  
 3  ################################################################################ 
 4   
 5   
 6  # 
 7  #    Project: The EDNA Kernel 
 8  #             http://www.edna-site.org 
 9  # 
10  #    File: "$Id: EDImportLib.py 1092 2010-02-01 13:53:18Z svensson $" 
11  # 
12  #    Copyright (C) 2008-2009 European Synchrotron Radiation Facility 
13  #                            Grenoble, France 
14  # 
15  #    Principal authors: Marie-Francoise Incardona (incardon@esrf.fr) 
16  #                       Olof Svensson (svensson@esrf.fr)  
17  #                       Jerome Kieffer 
18  # 
19  #    This program is free software: you can redistribute it and/or modify 
20  #    it under the terms of the GNU Lesser General Public License as published 
21  #    by the Free Software Foundation, either version 3 of the License, or 
22  #    (at your option) any later version. 
23  # 
24  #    This program is distributed in the hope that it will be useful, 
25  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
26  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
27  #    GNU Lesser General Public License for more details. 
28  # 
29  #    You should have received a copy of the GNU General Public License 
30  #    and the GNU Lesser General Public License  along with this program.   
31  #    If not, see <http://www.gnu.org/licenses/>. 
32  # 
33   
34  from  EDVerbose      import  EDVerbose 
35 36 -def deprecated(func):
37 '''This is a decorator to mark a method as deprecated and 38 send a warning whenever it is called. 39 ''' 40 def depfunc(*args, **kwargs): 41 EDVerbose.WARNING("Deprecation of EDCompiler by Monday 7th June 2010, called %s" % func.__name__) 42 return func(*args, **kwargs)
43 depfunc.__name__ = func.__name__ 44 depfunc.__doc__ = func.__doc__ 45 depfunc.__dict__.update(func.__dict__) 46 return depfunc 47
48 -class EDCompiler(object):
49 """ 50 Interface for AL Compiler. 51 """ 52 @deprecated
53 - def __init__(self):
54 super(self)
55 56 57 @staticmethod 58 @deprecated
59 - def accelerator():
60 """ 61 This method accelerates the application by a JIT compiler. 62 """ 63 pass
64 65 66 ############################################################################## 67