[xmds2] 05/08: d/p/pyparsing-dict.patch: Drop patch (applied upstream)

Rafael Laboissiere rafael at debian.org
Fri Feb 3 22:46:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rafael pushed a commit to branch master
in repository xmds2.

commit 2ff11d5505f4494ff7d154dfee60b3617366c886
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Fri Feb 3 16:28:24 2017 -0200

    d/p/pyparsing-dict.patch: Drop patch (applied upstream)
---
 debian/patches/pyparsing-dict.patch | 56 -------------------------------------
 debian/patches/series               |  2 --
 2 files changed, 58 deletions(-)

diff --git a/debian/patches/pyparsing-dict.patch b/debian/patches/pyparsing-dict.patch
deleted file mode 100644
index 62a5b2d..0000000
--- a/debian/patches/pyparsing-dict.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-Description: Fix breakage arising from newer versions of pyparsing
- The original implementation of the following code was
- .
- tokenDict = tokens.access[0].asDict()
- .
- The problem is that later versions of pyparsing return different
- result strings for the asDict() method compared to earlier ones.
- The specific breakage that occurred was between Ubuntu 16.04 (pyparsing 2.0.3)
- and Ubuntu 16.10 (pyparsing 2.1.8). The dictionary returned by
- pyparsing 2.1.8 has elements laid out in a different form, which then
- breaks later code in this function (specifically
- accessDict[key] = (' '.join(value[0].asList()), value.slice.start) )
- .
- To fix this, I skip the call to .asDict() and replace it with a simpler
- version of what pyparsing 2.0.3 was doing internally.
- This is backwards and forwards compatible for our purposes.
- It's not Python 3 safe, though; also the pyparsing people may have changed
- their code for good reason. Beware.
-Author: Mattias Johnsson <mattias.johnsson at mq.edu.au>
-Origin: https://sourceforge.net/p/xmds/code/2973
-Reviewed-by: Rafael Laboissière <rafael at debian.org>
-Last-Update: 2017-01-15
-
---- a/xpdeint/CodeParser.py
-+++ b/xpdeint/CodeParser.py
-@@ -151,7 +151,29 @@
-     for tokens, start, end in parser.scanString(codeBlock.codeString):
-         if tokens.name not in components: continue
-         accessDict = {}
--        tokenDict = tokens.access[0].asDict()
-+
-+        # Note by MTJ:
-+        #
-+        # The original implementation of the following code was 
-+        #
-+        # tokenDict = tokens.access[0].asDict()
-+        #
-+        # The problem is that later versions of pyparsing return different
-+        # result strings for the asDict() method compared to earlier ones.
-+        # The specific breakage that occurred was between Ubuntu 16.04 (pyparsing 2.0.3)
-+        # and Ubuntu 16.10 (pyparsing 2.1.8). The dictionary returned by 
-+        # pyparsing 2.1.8 has elements laid out in a different form, which then
-+        # breaks later code in this function (specifically 
-+        # accessDict[key] = (' '.join(value[0].asList()), value.slice.start) )
-+        # 
-+        # To fix this, I skip the call to .asDict() and replace it with a simpler 
-+        # version of what pyparsing 2.0.3 was doing internally.
-+        # This is backwards and forwards compatible for our purposes.
-+        # It's not Python 3 safe, though; also the pyparsing people may have changed
-+        # their code for good reason. Beware.
-+
-+        tokenDict = dict(tokens.access[0].iteritems())
-+
-         for key, value in tokenDict.items():
-             accessDict[key] = (' '.join(value[0].asList()), value.slice.start)
-         results.append((tokens.name, accessDict, slice(start, end)))
diff --git a/debian/patches/series b/debian/patches/series
index 21ecbfe..b059d54 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,2 @@
 revision-number-as-deb-pkg.patch
-pyparsing-dict.patch
 indexing-with-scalars.patch
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git



More information about the debian-science-commits mailing list