diff options
author | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-08-14 13:51:12 +0200 |
---|---|---|
committer | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-08-14 14:26:01 +0200 |
commit | 28c9fbb5417ddbd9ccccea04ddfc19ad0dd8828a (patch) | |
tree | 1d436a8c8f9d01699631c90b0b5de48a60f8d3fd /src/tinderbox | |
parent | Added -m switch to mktinderbox chroot (diff) | |
download | collagen-28c9fbb5417ddbd9ccccea04ddfc19ad0dd8828a.tar.gz collagen-28c9fbb5417ddbd9ccccea04ddfc19ad0dd8828a.tar.bz2 collagen-28c9fbb5417ddbd9ccccea04ddfc19ad0dd8828a.zip |
Use cPickle instead of pickle if available
Diffstat (limited to 'src/tinderbox')
-rw-r--r-- | src/tinderbox/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py index 3d39493..eeb4647 100644 --- a/src/tinderbox/__init__.py +++ b/src/tinderbox/__init__.py @@ -1,7 +1,10 @@ import sys import protocol import socket -import pickle +try: + import cPickle as pickle +except ImportError: + import pickle from time import sleep import os import errno |