From d34011b239c50e8f9f7f4914b43b9adff9e3fb73 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Sat, 18 Jun 2011 21:11:50 -0500 Subject: export.py: Allow to run export from machine with no Bcfg2 Signed-off-by: Sol Jerome --- tools/export.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/export.py') 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' -- cgit v1.2.3-1-g7c22