From 75f36846ef33057ee60b0cd30541348013ed7aaa Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 28 Nov 2009 20:28:39 -0600 Subject: [PATCH] missing modules --- modules/catalyst/target/generic_stage.py | 6 +++--- modules/catalyst/util.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/catalyst/target/generic_stage.py b/modules/catalyst/target/generic_stage.py index 491c6fc2..2c88ad5a 100644 --- a/modules/catalyst/target/generic_stage.py +++ b/modules/catalyst/target/generic_stage.py @@ -906,9 +906,9 @@ class generic_stage_target(generic_target): """ for x in self.settings.keys(): """ Sanitize var names by doing "s|/-.|_|g" """ - varname="clst_"+string.replace(x,"/","_") - varname=string.replace(varname,"-","_") - varname=string.replace(varname,".","_") + varname = "clst_" + x.replace("/", "_") + varname = varname.replace("-", "_") + varname = varname.replace(".", "_") if isinstance(self.settings[x], str): """ Prefix to prevent namespace clashes """ #os.environ[varname]=self.settings[x] diff --git a/modules/catalyst/util.py b/modules/catalyst/util.py index 503ac14e..a37cc0af 100644 --- a/modules/catalyst/util.py +++ b/modules/catalyst/util.py @@ -2,7 +2,7 @@ Collection of utility functions for catalyst """ -import sys, traceback, os, re, time, shutil, glob +import sys, traceback, os, re, time, shutil, glob, stat import catalyst from catalyst.error import * from catalyst.output import * -- 2.26.2