summaryrefslogtreecommitdiffstats
path: root/tools/export.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/export.py')
-rwxr-xr-xtools/export.py7
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'