diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-06-18 21:11:50 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-18 21:11:50 -0500 |
commit | d34011b239c50e8f9f7f4914b43b9adff9e3fb73 (patch) | |
tree | fabb7a2520dea879eec1b8fa2aac4b71f93c7b79 /tools | |
parent | 76366b0bf116b0d320ec4a7168de8f62cc50ec98 (diff) | |
download | bcfg2-d34011b239c50e8f9f7f4914b43b9adff9e3fb73.tar.gz bcfg2-d34011b239c50e8f9f7f4914b43b9adff9e3fb73.tar.bz2 bcfg2-d34011b239c50e8f9f7f4914b43b9adff9e3fb73.zip |
export.py: Allow to run export from machine with no Bcfg2
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/export.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/export.py b/tools/export.py index 47b23469a..62e13a8a3 100755 --- a/tools/export.py +++ b/tools/export.py @@ -8,8 +8,11 @@ import fileinput from subprocess import Popen, PIPE import sys -# Compatibility import -from Bcfg2.Bcfg2Py3k import formatdate +# py3k compatibility +try: + from email.Utils import formatdate +except ImportError: + from email.utils import formatdate pkgname = 'bcfg2' ftphost = 'terra.mcs.anl.gov' |