"Eric W. Biederman" wrote:
> 
> Ollie Lho <[EMAIL PROTECTED]> writes:
> 
> > "Eric W. Biederman" wrote:
> > >
> > > O.k.  I think I have addressed all of the issues everyone has found up to this
> >
> > > point with my most recent commit. If you have any more problems let me know.
> > >
> >
> > When running NLBConfig.py I got
> 
> > What's wrong ??
> 
> Hmm.  It looks like I somehow used a non portable python construct. Because
> I can't figure out how to reproduce  the error.
> 
> Does this patch help?
> 

No, I got:

Trying to create  winfast/Makefile
Trying to create  winfast/ldscript.ld
Traceback (innermost last):
  File "NLBConfig.py", line 698, in ?
    writeldscript(outputdir)
  File "NLBConfig.py", line 520, in writeldscript
    if value and regexp.match(value):
  File "/usr/lib/python1.5/re.py", line 117, in match
    endpos=len(string)
TypeError: len() of unsized object


Why regex compile having problem in len(string) ??

Ollie

> --- checkin/freebios/util/config/NLBConfig.py   Wed Aug 15 14:47:07 2001
> +++ freebios/util/config/NLBConfig.py   Wed Aug 15 20:25:08 2001
> @@ -515,7 +515,8 @@
>         keys.sort()
>         for key in keys:
>                 value = makeoptions[key]
> -               if re.match("^(0x[0-9a-fA-F]+|0[0-7]+|[0-9]+)$", value):
> +               regexp = re.compile(r"^(0x[0-9a-fA-F]+|0[0-7]+|[0-9]+)$")
> +               if value and regexp.match(value):
>                         file.write("%s = %s;\n" % (key, value))
> 
>         ldlines = readfile(ldscriptbase)
> 
> Eric

Reply via email to