aboutsummaryrefslogtreecommitdiff
path: root/scripts/analyze-rcynic-history.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-03-15 05:16:17 +0000
committerRob Austein <sra@hactrn.net>2012-03-15 05:16:17 +0000
commit53b1ea1ae416245aa69a0ca5e61a69ed7c7d0946 (patch)
tree31b23b03c10e3a990494d1bb599a4289f493534b /scripts/analyze-rcynic-history.py
parent13bc9909d5ed2f246c0e6eb21f69e205f609e64e (diff)
No gdbm on MacOSX.
svn path=/trunk/; revision=4398
Diffstat (limited to 'scripts/analyze-rcynic-history.py')
-rw-r--r--scripts/analyze-rcynic-history.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/analyze-rcynic-history.py b/scripts/analyze-rcynic-history.py
index 2b8da14c..88a55cf9 100644
--- a/scripts/analyze-rcynic-history.py
+++ b/scripts/analyze-rcynic-history.py
@@ -32,7 +32,6 @@ import getopt
import datetime
import subprocess
import shelve
-import gdbm
from xml.etree.cElementTree import (ElementTree as ElementTree,
fromstring as ElementTreeFromString)
@@ -206,7 +205,10 @@ def plot_one(hostnames, fields):
mb = mailbox.Maildir("/u/sra/rpki/rcynic-xml", factory = None, create = False)
-shelf = shelve.Shelf(gdbm.open("rcynic-xml.gdbm", "c"))
+if sys.platform == "darwin": # Sigh
+ shelf = shelve.open("rcynic-xml", "c")
+else:
+ shelf = shelve.open("rcynic-xml.db", "c")
sessions = []