Source: python3-pyparsing
Version: 2.0.0+ ?
Severity: normal
Tags: upstream patch

Dear Maintainer,

   Working on pPython3 program which quite seriously uses PyParsing
   When ever displaying error Parsing output, an Exception is thrown:
   
   File "/usr/share/dms/dms/app/zone_tool.py", line 2251, in do_edit_zone
     print(exc.markInputline(), file=self.stdout)
   File "/usr/lib/python3/dist-packages/pyparsing.py", line 207,
     in markInputline
     markerString, line_str[line_column:])
  TypeError: join() takes exactly one argument (3 given)

  Added missing () or [] around arguments, producing an iterable, and
  everything worked, and I got line by line parsing errors with position
  display happening.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: pyparsing-2.0.1+dfsg1/pyparsing.py
===================================================================
--- pyparsing-2.0.1+dfsg1.orig/pyparsing.py	2013-07-17 19:08:10.000000000 +1200
+++ pyparsing-2.0.1+dfsg1/pyparsing.py	2014-04-09 18:37:03.991046822 +1200
@@ -203,8 +203,8 @@
         line_str = self.line
         line_column = self.column - 1
         if markerString:
-            line_str = "".join(line_str[:line_column],
-                                markerString, line_str[line_column:])
+            line_str = "".join([line_str[:line_column],
+                                markerString, line_str[line_column:]])
         return line_str.strip()
     def __dir__(self):
         return "loc msg pstr parserElement lineno col line " \

Reply via email to