diff options
author | Rob Austein <sra@hactrn.net> | 2011-06-17 19:54:52 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2011-06-17 19:54:52 +0000 |
commit | 56b28530e0f89f173fb64851ae024d3313540f54 (patch) | |
tree | 54f72add52cfb1e08529aef01627da42f3297028 | |
parent | d03ae630f6433198cb10071e10f0c8c2fb29cee0 (diff) |
More "from __future__ import with_statement" fun
svn path=/buildtools/make-python-executable.py; revision=3885
-rw-r--r-- | buildtools/make-python-executable.py | 3 | ||||
-rw-r--r-- | rpkid/portal-gui/scripts/adduser.py | 2 | ||||
-rw-r--r-- | rpkid/portal-gui/scripts/rpkigui-rcynic.py | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/buildtools/make-python-executable.py b/buildtools/make-python-executable.py index eeb31e39..f44119d8 100644 --- a/buildtools/make-python-executable.py +++ b/buildtools/make-python-executable.py @@ -20,6 +20,9 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ +# Some scripts need this, and it must be first executable statement +from __future__ import with_statement + import os, sys sys.stdout.write('''\ diff --git a/rpkid/portal-gui/scripts/adduser.py b/rpkid/portal-gui/scripts/adduser.py index c64fcd7c..c341ef7a 100644 --- a/rpkid/portal-gui/scripts/adduser.py +++ b/rpkid/portal-gui/scripts/adduser.py @@ -20,6 +20,8 @@ # # DO NOT EDIT! This script is automatically generated from adduser.py +from __future__ import with_statement + import os os.environ['DJANGO_SETTINGS_MODULE'] = 'rpki.gui.settings' diff --git a/rpkid/portal-gui/scripts/rpkigui-rcynic.py b/rpkid/portal-gui/scripts/rpkigui-rcynic.py index a4d55f5e..1794ec08 100644 --- a/rpkid/portal-gui/scripts/rpkigui-rcynic.py +++ b/rpkid/portal-gui/scripts/rpkigui-rcynic.py @@ -14,6 +14,8 @@ # PERFORMANCE OF THIS SOFTWARE. # +from __future__ import with_statement + default_logfile = '/var/rcynic/data/summary.xml' default_root = '/var/rcynic/data' |