syntax errors in soapserver.py, sync.py, vf2.py and webdemo2.py

As a follow-up to my message dated 25 Jul 2006:
http://lists.w3.org/Archives/Public/public-cwm-bugs/2006Jul/0000.html

I have found a number of syntax errors in some of the files in the  
swap CVS distribution, as they are breaking my debian updating  
process. I can probably fix most of them if given a green light to  
commit changes, but if someone more familiar with the code can fix  
the errors with more assurance that it will not break other things,  
please do.

Below, details of the debian package config output, which somehow  
tripped on swap.


On Aug 1, 2006, at 07:18 , root wrote:
> Setting up debconf (1.5.3) ...
[...]
> Compiling /usr/lib/python2.3/site-packages/swap/soapserver.py ...
>   File "/usr/lib/python2.3/site-packages/swap/soapserver.py", line 17
>     ... run
>     ^
> SyntaxError: invalid syntax
>
> Compiling /usr/lib/python2.3/site-packages/swap/sync.py ...
>   File "/usr/lib/python2.3/site-packages/swap/sync.py", line 125
>     D = differences(F, G, assumptions):
>                                       ^
> SyntaxError: invalid syntax
>
> Compiling /usr/lib/python2.3/site-packages/swap/vf2.py ...
>   File "/usr/lib/python2.3/site-packages/swap/vf2.py", line 129
>     self.t1_in.update(x for x in G1.predecessors(node1).keys() if x  
> not in self.map)
>                           ^
> SyntaxError: invalid syntax
>
> Compiling /usr/lib/python2.3/site-packages/swap/webdemo2.py ...
>   File "/usr/lib/python2.3/site-packages/swap/webdemo2.py", line 46
>     for m in modules
>                     ^
> SyntaxError: invalid syntax
>
> dpkg: error processing debconf (--configure):
>  subprocess post-installation script returned error exit status 1

thanks,
olivier
-- 
olivier Thereaux - W3C - http://www.w3.org/People/olivier/
W3C Open Source Software: http://www.w3.org/Status

Received on Tuesday, 1 August 2006 05:10:08 UTC