fix alternate separator with slash in first part of regexp

This commit is contained in:
George-Cristian Bîrzan 2005-03-17 19:51:24 +00:00
parent 6b19504515
commit 7aae5ae41e

View File

@ -173,7 +173,7 @@ def perlReToReplacer(s):
if 'g' in flags:
g = True
flags = filter('g'.__ne__, flags)
r = perlReToPythonRe('/'.join(('', regexp, flags)))
r = perlReToPythonRe(sep.join(('', regexp, flags)))
if g:
return curry(r.sub, replace)
else: