[Python-modules-commits] r17915 - in packages/pdfminer/trunk/debian/patches (1 file)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Thu Jul 28 03:00:05 UTC 2011


    Date: Thursday, July 28, 2011 @ 03:00:03
  Author: eriol-guest
Revision: 17915

Applied upstream in version 20101226

Deleted:
  packages/pdfminer/trunk/debian/patches/fix-test-psparser.diff

Deleted: packages/pdfminer/trunk/debian/patches/fix-test-psparser.diff
===================================================================
--- packages/pdfminer/trunk/debian/patches/fix-test-psparser.diff	2011-07-28 02:42:55 UTC (rev 17914)
+++ packages/pdfminer/trunk/debian/patches/fix-test-psparser.diff	2011-07-28 03:00:03 UTC (rev 17915)
@@ -1,63 +0,0 @@
-Description: Fix test failures in pdfminer.psparser.
-Origin: backport, http://code.google.com/p/pdfminerr/source/detail?r=265
-Last-Update: 2010-12-02
-
---- a/pdfminer/psparser.py
-+++ b/pdfminer/psparser.py
-@@ -411,12 +411,12 @@
- 
-     def _parse_wopen(self, s, i):
-         c = s[i]
--        if c.isspace() or HEX.match(c):
--            return (self._parse_hexstring, i)
-         if c == '<':
-             self._add_token(KEYWORD_DICT_BEGIN)
-             i += 1
--        return (self._parse_main, i)
-+            return (self._parse_main, i)
-+        else:
-+            return (self._parse_hexstring, i)
- 
-     def _parse_wclose(self, s, i):
-         c = s[i]
-@@ -583,7 +583,7 @@
- baa)
- (foo\
- baa)
--<20> < 40 4020 >
-+<> <20> < 40 4020 >
- <abcd00
- 12345>
- func/a/b{(c)do*}def
-@@ -598,12 +598,12 @@
-       (65, 1.234), (71, 'abc'), (77, ''), (80, 'abc ( def ) ghi'),
-       (98, 'def \x00 4ghi'), (118, 'bach\\slask'), (132, 'foo\nbaa'),
-       (143, 'this % is not a comment.'), (170, 'foo\nbaa'), (180, 'foobaa'),
--      (191, ' '), (196, '@@ '), (208, '\xab\xcd\x00\x124\x05'),
--      (223, KWD('func')), (227, LIT('a')), (229, LIT('b')),
--      (231, KWD('{')), (232, 'c'), (235, KWD('do*')), (238, KWD('}')),
--      (239, KWD('def')), (243, KWD('[')), (245, 1), (247, 'z'), (251, KWD('!')),
--      (253, KWD(']')), (255, KWD('<<')), (258, LIT('foo')), (263, 'bar'),
--      (269, KWD('>>'))
-+      (191, ''), (194, ' '), (199, '@@ '), (211, '\xab\xcd\x00\x124\x05'),
-+      (226, KWD('func')), (230, LIT('a')), (232, LIT('b')),
-+      (234, KWD('{')), (235, 'c'), (238, KWD('do*')), (241, KWD('}')),
-+      (242, KWD('def')), (246, KWD('[')), (248, 1), (250, 'z'), (254, KWD('!')),
-+      (256, KWD(']')), (258, KWD('<<')), (261, LIT('foo')), (266, 'bar'),
-+      (272, KWD('>>'))
-       ]
- 
-     OBJS = [
-@@ -612,9 +612,9 @@
-       (65, 1.234), (71, 'abc'), (77, ''), (80, 'abc ( def ) ghi'),
-       (98, 'def \x00 4ghi'), (118, 'bach\\slask'), (132, 'foo\nbaa'),
-       (143, 'this % is not a comment.'), (170, 'foo\nbaa'), (180, 'foobaa'),
--      (191, ' '), (196, '@@ '), (208, '\xab\xcd\x00\x124\x05'),
--      (227, LIT('a')), (229, LIT('b')), (232, 'c'), (243, [1, 'z']),
--      (255, {'foo': 'bar'}),
-+      (191, ''), (194, ' '), (199, '@@ '), (211, '\xab\xcd\x00\x124\x05'),
-+      (230, LIT('a')), (232, LIT('b')), (234, ['c']), (246, [1, 'z']),
-+      (258, {'foo': 'bar'}),
-       ]
- 
-     def get_tokens(self, s):




More information about the Python-modules-commits mailing list