Update for modules which import json.

Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
This commit is contained in:
Toshio Kuratomi 2016-01-11 12:47:21 -08:00 committed by Matt Clay
commit ad0d2c1747
22 changed files with 85 additions and 37 deletions

View file

@ -109,7 +109,6 @@ EXAMPLES = '''
- pacman: name=baz state=absent force=yes
'''
import json
import shlex
import os
import re

View file

@ -63,7 +63,6 @@ EXAMPLES = '''
'''
import json
import shlex
import os
import sys

View file

@ -85,7 +85,6 @@ EXAMPLES = '''
'''
import json
import shlex
import os
import re

View file

@ -58,7 +58,6 @@ EXAMPLES = '''
'''
import json
import shlex
import os
import sys

View file

@ -73,7 +73,6 @@ EXAMPLES = '''
'''
import json
import shlex
import os
import sys