The problem is specific to reading from stdin.

It looks like this is fixed in upstream 1.6, which is also now in Debian
unstable.

http://packages.debian.org/search?keywords=python-demjson

The actual diff is just


=== modified file 'jsonlint'
--- jsonlint    2009-11-26 23:16:58 +0000
+++ jsonlint    2011-04-14 12:33:50 +0000
@@ -172,7 +172,9 @@
     else:
         jsondata = sys.stdin.read()
         if not lintcheck_data( jsondata, verbose=verbose, reformat=reformat,
-                               encoding=encoding, 
escape_unicode=escape_unicode, pfx='<stdin>: ' ):
+                               input_encoding=input_encoding, 
+                               output_encoding=output_encoding,
+                               escape_unicode=escape_unicode, pfx='<stdin>: ' 
):
             success = False
 
     if not success:

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/753035

Title:
  natty regression: jsonlint crashed with NameError in main(): global
  name 'encoding' is not defined

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to