Commit 8bb7d5a2 authored by Robert Bradshaw's avatar Robert Bradshaw

no iglob in Py2.4

parent d71ace55
from glob import iglob from glob import glob
import re, os, sys import re, os, sys
...@@ -39,7 +39,7 @@ def extended_iglob(pattern): ...@@ -39,7 +39,7 @@ def extended_iglob(pattern):
first, rest = pattern.split('**/', 1) first, rest = pattern.split('**/', 1)
if first == '': if first == '':
first = '.' first = '.'
for root in iglob(first + "/"): for root in glob(first + "/"):
for path in extended_iglob(os.path.join(root, rest)): for path in extended_iglob(os.path.join(root, rest)):
if path not in seen: if path not in seen:
seen.add(path) seen.add(path)
...@@ -49,7 +49,7 @@ def extended_iglob(pattern): ...@@ -49,7 +49,7 @@ def extended_iglob(pattern):
seen.add(path) seen.add(path)
yield path yield path
else: else:
for path in iglob(pattern): for path in glob(pattern):
yield path yield path
def parse_list(s): def parse_list(s):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment