From 149cf74fe6e8d831c6931989c78a89e72aa20861 Mon Sep 17 00:00:00 2001 From: "riccardo@unbit" Date: Tue, 21 Dec 2010 07:23:51 +0100 Subject: [PATCH] compile on git Linux kernel --- uwsgiconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 899fa568..83519235 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -1,8 +1,9 @@ # uWSGI build system import os +import re uwsgi_os = os.uname()[0] -uwsgi_os_k = os.uname()[2].split('-')[0] +uwsgi_os_k = re.split('[-+]', os.uname()[2])[0] uwsgi_os_v = os.uname()[3] uwsgi_cpu = os.uname()[4]