[Scipy-svn] r2748 - trunk/Lib/sandbox/timeseries/io/fame

scipy-svn@scip... scipy-svn@scip...
Thu Feb 22 09:02:19 CST 2007


Author: mattknox_ca
Date: 2007-02-22 09:02:16 -0600 (Thu, 22 Feb 2007)
New Revision: 2748

Modified:
   trunk/Lib/sandbox/timeseries/io/fame/core.py
Log:
moved fame constants into their own name space

Modified: trunk/Lib/sandbox/timeseries/io/fame/core.py
===================================================================
--- trunk/Lib/sandbox/timeseries/io/fame/core.py	2007-02-22 15:01:51 UTC (rev 2747)
+++ trunk/Lib/sandbox/timeseries/io/fame/core.py	2007-02-22 15:02:16 UTC (rev 2748)
@@ -5,18 +5,12 @@
 import timeseries as ts
 
 import cfame
-from cfame import FAME_CONSTANTS
+from const import *
 
 __all__ = [
     'FameDb', 'set_option', 'license_expires', 'DBError'
            ]
 
-_g = globals()
-for var, val in FAME_CONSTANTS.iteritems():
-    _g[var] = val
-    
-__all__.extend(list(FAME_CONSTANTS))
-
 def reverse_dict(d):
     return dict([(y, x) for x, y in d.iteritems()])
 



More information about the Scipy-svn mailing list