Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Subject: Make this package ready for python 2.6
Bug-Debian: http://bugs.debian.org/583636
--- a/parser/python/PyPlucker/PluckerDocs.py
+++ b/parser/python/PyPlucker/PluckerDocs.py
@@ -508,7 +508,7 @@
 
 
     def get_external_references (self):
-        assert(not self._refs_cleared)
+        assert not self._refs_cleared
         return (self._document_refs, self._image_refs)
 
     
@@ -2266,7 +2266,7 @@
                 vlen = len(self._info[key])
                 nwords = (vlen + 1) / 2
                 dataval = self._info[key] + '\0' * (vlen % 2)
-                assert(len(dataval) == (nwords * 2), "Invalid length calculation in marshalling of PluckerMetadataDocument")
+                assert len(dataval) == (nwords * 2), "Invalid length calculation in marshalling of PluckerMetadataDocument"
                 subrecords.append(struct.pack('>HH', self.TYPECODE_AUTHOR, nwords))
                 subrecords.append(dataval)
                 count = count + 1
@@ -2275,7 +2275,7 @@
                 vlen = len(self._info[key])
                 nwords = (vlen + 1) / 2
                 dataval = self._info[key] + '\0' * (vlen % 2)
-                assert(len(dataval) == (nwords * 2), "Invalid length calculation in marshalling of PluckerMetadataDocument")
+                assert len(dataval) == (nwords * 2), "Invalid length calculation in marshalling of PluckerMetadataDocument"
                 subrecords.append(struct.pack('>HH', self.TYPECODE_TITLE, nwords))
                 subrecords.append(dataval)
                 count = count + 1
--- a/parser/python/PyPlucker/TextParser.py
+++ b/parser/python/PyPlucker/TextParser.py
@@ -2006,7 +2006,7 @@
         if self._get_top_element () == "li":
             self._end_li ()
         self._ul_list_depth = self._ul_list_depth - 1
-        assert(self._ul_list_depth >= 0)
+        assert self._ul_list_depth >= 0
         self._pop_element ("list")
 
 
@@ -2019,7 +2019,7 @@
         if self._get_top_element () == "li":
             self._end_li ()
         self._ol_list_depth = self._ol_list_depth - 1
-        assert(self._ol_list_depth >= 0)
+        assert self._ol_list_depth >= 0
         self._pop_element ("list")
 
 
--- a/plucker_desktop/installer/osx/application_bundle_files/Resources/parser/python/vm/PIL/TiffImagePlugin.py
+++ b/plucker_desktop/installer/osx/application_bundle_files/Resources/parser/python/vm/PIL/TiffImagePlugin.py
@@ -581,7 +581,7 @@
 def _cvt_res(value):
     # convert value to TIFF rational number -- (numerator, denominator)
     if type(value) in (type([]), type(())):
-        assert(len(value) % 2 == 0)
+        assert len(value) % 2 == 0
         return value
     if type(value) == type(1):
         return (value, 1)
