From e3e93c7f90c8b2b4b7fa7303bfc50fb9c7959d87 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 6 Jun 2014 12:51:41 +0200 Subject: [PATCH] except ImportError when importing cPickle on Python3 cPickle is not available with Python3. With Python3 the standard version should be imported. Change-Id: I0c17aaeeebceff1c25950bbe59cedc62f31b13e7 --- modules/recheckwatch/files/recheckwatch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/recheckwatch/files/recheckwatch b/modules/recheckwatch/files/recheckwatch index ea945e166c..5801797091 100755 --- a/modules/recheckwatch/files/recheckwatch +++ b/modules/recheckwatch/files/recheckwatch @@ -19,7 +19,10 @@ import re import sys import threading import traceback -import cPickle as pickle +try: + import cPickle as pickle +except ImportError: + import pickle import os from genshi.template import TemplateLoader