# HG changeset patch # User Mads Kiilerich # Date 2016-01-05 15:23:22 # Node ID 2189802db18a01d15cff9650ab5dc8c31263f585 # Parent efce61aac33d492863e3c956328ed0e25be2527a python: workaround Python 2.7.11 incompatibility in the celery dependency kombu diff --git a/kallithea/__init__.py b/kallithea/__init__.py --- a/kallithea/__init__.py +++ b/kallithea/__init__.py @@ -93,3 +93,9 @@ if len(VERSION) > 3: __version__ += VERSION[4] else: __version__ += '0' + +# Hack for making the celery dependency kombu==1.5.1 compatible with Python +# 2.7.11 which has https://hg.python.org/releases/2.7.11/rev/24bdc4940e81 +import uuid +if not hasattr(uuid, '_uuid_generate_random'): + uuid._uuid_generate_random = None