From fe78837be686e5bc7539d639ee0000d61fa66ed1 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 30 Sep 2013 19:38:33 +0200 Subject: [PATCH] Py2.4 fix --- Cython/Build/Dependencies.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index 1e1f970..b78a0d5 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -1,9 +1,14 @@ import cython from Cython import __version__ -from glob import iglob import re, os, sys, time try: + from glob import iglob +except ImportError: + # Py2.4 + from glob import glob as iglob + +try: import gzip gzip_open = gzip.open gzip_ext = '.gz' -- 2.7.4