summaryrefslogtreecommitdiffstats
path: root/Lib/json
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-06 02:51:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-06 02:51:10 (GMT)
commit0b7f77847a878a84c2b928e72372b4d5b44b870c (patch)
tree67cf9eef1fe810976894d40f01b5d2c11ef98cd3 /Lib/json
parent24237ea8a128d145d00397bd79eba06db471bcdb (diff)
downloadcpython-0b7f77847a878a84c2b928e72372b4d5b44b870c.zip
cpython-0b7f77847a878a84c2b928e72372b4d5b44b870c.tar.gz
cpython-0b7f77847a878a84c2b928e72372b4d5b44b870c.tar.bz2
PEP 8 nits in json package
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/tests/__init__.py2
-rw-r--r--Lib/json/tests/test_recursion.py2
-rw-r--r--Lib/json/tool.py1
3 files changed, 3 insertions, 2 deletions
diff --git a/Lib/json/tests/__init__.py b/Lib/json/tests/__init__.py
index a0797ea..1a1e3e6 100644
--- a/Lib/json/tests/__init__.py
+++ b/Lib/json/tests/__init__.py
@@ -31,7 +31,5 @@ def main():
runner.run(suite)
if __name__ == '__main__':
- import os
- import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
main()
diff --git a/Lib/json/tests/test_recursion.py b/Lib/json/tests/test_recursion.py
index b82a373..073d3c1 100644
--- a/Lib/json/tests/test_recursion.py
+++ b/Lib/json/tests/test_recursion.py
@@ -5,6 +5,7 @@ import json
class JSONTestObject:
pass
+
class RecursiveJSONEncoder(json.JSONEncoder):
recurse = False
def default(self, o):
@@ -15,6 +16,7 @@ class RecursiveJSONEncoder(json.JSONEncoder):
return 'JSONTestObject'
return json.JSONEncoder.default(o)
+
class TestRecursion(TestCase):
def test_listrecursion(self):
x = []
diff --git a/Lib/json/tool.py b/Lib/json/tool.py
index cbd258c..daedbb5 100644
--- a/Lib/json/tool.py
+++ b/Lib/json/tool.py
@@ -8,6 +8,7 @@ Usage::
}
$ echo '{ 1.2:3.4}' | python -mjson.tool
Expecting property name: line 1 column 2 (char 2)
+
"""
import sys
import json