diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2012-03-12 21:49:11 +0000 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2012-03-12 21:50:15 +0000 |
| commit | 00592cfa0b90c66682be2bc31428277c35a35c48 (patch) | |
| tree | a69a2bce587397d9970bee77ef16f7ef83cecccf /bin/nova-spoolsentry | |
| parent | e18996253ccde16aaf65866d85d05372b75b3a1f (diff) | |
| download | nova-00592cfa0b90c66682be2bc31428277c35a35c48.tar.gz nova-00592cfa0b90c66682be2bc31428277c35a35c48.tar.xz nova-00592cfa0b90c66682be2bc31428277c35a35c48.zip | |
Use cPickle and not just pickle.
Fixes bug 953423
cPickle is up to 1000 times faster than pickle. We should use it instead.
Change-Id: I1facbdcf60d88c9fba56687abf75524498d2502e
Diffstat (limited to 'bin/nova-spoolsentry')
| -rwxr-xr-x | bin/nova-spoolsentry | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/nova-spoolsentry b/bin/nova-spoolsentry index 8f54b0929..7f5134975 100755 --- a/bin/nova-spoolsentry +++ b/bin/nova-spoolsentry @@ -19,6 +19,7 @@ import base64 +import cPickle as pickle import json import logging import os @@ -26,10 +27,6 @@ import shutil import sys import urllib import urllib2 -try: - import cPickle as pickle -except Exception: - import pickle class SpoolSentry(object): |
