Package: python-soappy
Version: 0.11.3-1.7
Severity: important
Tags: patch

--- Please enter the report below this line. ---
During the byte-compiling for python2.5, I get:

<output>
Setting up python-soappy (0.11.3-1.7) ...
Compiling /var/lib/python-support/python2.5/SOAPpy/Client.py ...
 File "/var/lib/python-support/python2.5/SOAPpy/Client.py", line 46
   from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/GSIServer.py ...
 File "/var/lib/python-support/python2.5/SOAPpy/GSIServer.py", line 49
   from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Server.py ...
 File "/var/lib/python-support/python2.5/SOAPpy/Server.py", line 46
   from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

Compiling /var/lib/python-support/python2.5/SOAPpy/Types.py ...
 File "/var/lib/python-support/python2.5/SOAPpy/Types.py", line 39
   from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

</output>
The offending __future__ imports are on the 2nd or 3rd line when they
are required to be on the 1st by python.

Attached is a patch. Apply as
$ patch -p1 python-soappy2.5p1patch.diff

My first ridiculous patch :P

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.18-4-686

Debian Release: 4.0
 500 stable          192.168.1.2

--- Package information. ---
Depends             (Version) | Installed
=============================-+-===========
python-support       (>= 0.2) | 0.5.6
python-xml                    | 0.8.4-6



--
www.mathsoc.com
diff -Naur soap/Client.py soapfixed/Client.py
--- soap/Client.py	2007-06-03 21:24:10.000000000 +0100
+++ soapfixed/Client.py	2007-06-03 21:14:58.000000000 +0100
@@ -40,10 +40,11 @@
 ################################################################################
 """
 
+from __future__ import nested_scopes
+
 ident = '$Id: Client.py,v 1.16 2004/02/18 04:05:59 warnes Exp $'
 from version import __version__
 
-from __future__ import nested_scopes
 
 #import xml.sax
 import urllib
diff -Naur soap/GSIServer.py soapfixed/GSIServer.py
--- soap/GSIServer.py	2007-06-03 21:14:07.000000000 +0100
+++ soapfixed/GSIServer.py	2007-06-03 21:15:07.000000000 +0100
@@ -43,10 +43,11 @@
 ################################################################################
 """
 
+from __future__ import nested_scopes
+
 ident = '$Id: GSIServer.py,v 1.4 2004/02/04 03:21:02 irjudson Exp $'
 from version import __version__
 
-from __future__ import nested_scopes
 
 #import xml.sax
 import re
diff -Naur soap/Server.py soapfixed/Server.py
--- soap/Server.py	2007-06-03 21:14:07.000000000 +0100
+++ soapfixed/Server.py	2007-06-03 21:15:15.000000000 +0100
@@ -40,10 +40,11 @@
 ################################################################################
 """
 
+from __future__ import nested_scopes
+
 ident = '$Id: Server.py,v 1.14 2004/02/03 06:38:20 irjudson Exp $'
 from version import __version__
 
-from __future__ import nested_scopes
 
 #import xml.sax
 import re
diff -Naur soap/Types.py soapfixed/Types.py
--- soap/Types.py	2007-06-03 21:14:07.000000000 +0100
+++ soapfixed/Types.py	2007-06-03 21:15:23.000000000 +0100
@@ -33,10 +33,11 @@
 ################################################################################
 """
 
+from __future__ import nested_scopes
+
 ident = '$Id: Types.py,v 1.12 2004/02/18 04:28:57 warnes Exp $'
 from version import __version__
 
-from __future__ import nested_scopes
 
 import UserList
 import base64

Reply via email to