[Python-modules-commits] r13334 - in packages/pdfminer/trunk/debian/patches (poppler-data.diff)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Tue Jun 8 16:41:15 UTC 2010


    Date: Tuesday, June 8, 2010 @ 16:41:00
  Author: jwilk
Revision: 13334

Don't raise ValueError in poppler-data.diff.

Modified:
  packages/pdfminer/trunk/debian/patches/poppler-data.diff

Modified: packages/pdfminer/trunk/debian/patches/poppler-data.diff
===================================================================
--- packages/pdfminer/trunk/debian/patches/poppler-data.diff	2010-06-08 16:37:26 UTC (rev 13333)
+++ packages/pdfminer/trunk/debian/patches/poppler-data.diff	2010-06-08 16:41:00 UTC (rev 13334)
@@ -16,7 +16,7 @@
  from struct import pack, unpack
  from psparser import PSStackParser
  from psparser import PSException, PSSyntaxError, PSTypeError, PSEOF
-@@ -225,8 +226,20 @@
+@@ -225,8 +226,19 @@
          try:
              module = __import__(modname, fromlist=['pdfminer.cmap'])
          except ImportError:
@@ -30,7 +30,6 @@
 +                finally:
 +                    fp.close()
 +                return cmap
-+            raise ValueError(name)
              raise CMapDB.CMapNotFound(name)
 -        return PyCMap(name, module)
 +        else:
@@ -38,7 +37,7 @@
  
      @classmethod
      def get_unicode_map(klass, name, vertical=False):
-@@ -236,8 +249,19 @@
+@@ -236,8 +248,18 @@
          try:
              module = __import__(modname, fromlist=['pdfminer.cmap'])
          except ImportError:
@@ -51,7 +50,6 @@
 +                finally:
 +                    fp.close()
 +                return cmap
-+            raise ValueError(name)
              raise CMapDB.CMapNotFound(name)
 -        return PyUnicodeMap(name, module, vertical)
 +        else:




More information about the Python-modules-commits mailing list